bots: Simplify test_encrpyt.py.

This commit is contained in:
Steve Howell 2017-12-07 19:46:29 -08:00 committed by showell
parent 7285affbc4
commit f421e90a64

View file

@ -1,19 +1,16 @@
#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import print_function
from zulip_bots.test_lib import StubBotTestCase
from zulip_bots.test_lib import BotTestCase
class TestEncryptBot(BotTestCase):
class TestEncryptBot(StubBotTestCase):
bot_name = "encrypt"
def test_bot(self):
expected = [
dialog = [
("", "Encrypted/Decrypted text: "),
("Let\'s Do It", "Encrypted/Decrypted text: Yrg\'f Qb Vg"),
("me&mom together..!!", "Encrypted/Decrypted text: zr&zbz gbtrgure..!!"),
("foo bar", "Encrypted/Decrypted text: sbb one"),
("Please encrypt this", "Encrypted/Decrypted text: Cyrnfr rapelcg guvf"),
]
self.check_expected_responses(expected)
self.verify_dialog(dialog)