bots: Simplify test_encrpyt.py.
This commit is contained in:
parent
7285affbc4
commit
f421e90a64
|
@ -1,19 +1,16 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from zulip_bots.test_lib import StubBotTestCase
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from zulip_bots.test_lib import BotTestCase
|
class TestEncryptBot(StubBotTestCase):
|
||||||
|
|
||||||
class TestEncryptBot(BotTestCase):
|
|
||||||
bot_name = "encrypt"
|
bot_name = "encrypt"
|
||||||
|
|
||||||
def test_bot(self):
|
def test_bot(self):
|
||||||
expected = [
|
dialog = [
|
||||||
("", "Encrypted/Decrypted text: "),
|
("", "Encrypted/Decrypted text: "),
|
||||||
("Let\'s Do It", "Encrypted/Decrypted text: Yrg\'f Qb Vg"),
|
("Let\'s Do It", "Encrypted/Decrypted text: Yrg\'f Qb Vg"),
|
||||||
("me&mom together..!!", "Encrypted/Decrypted text: zr&zbz gbtrgure..!!"),
|
("me&mom together..!!", "Encrypted/Decrypted text: zr&zbz gbtrgure..!!"),
|
||||||
("foo bar", "Encrypted/Decrypted text: sbb one"),
|
("foo bar", "Encrypted/Decrypted text: sbb one"),
|
||||||
("Please encrypt this", "Encrypted/Decrypted text: Cyrnfr rapelcg guvf"),
|
("Please encrypt this", "Encrypted/Decrypted text: Cyrnfr rapelcg guvf"),
|
||||||
]
|
]
|
||||||
self.check_expected_responses(expected)
|
self.verify_dialog(dialog)
|
||||||
|
|
Loading…
Reference in a new issue