zulip_bots: Store testing conversations in lists.
This enforces the use of a list of tuples for conversations, as opposed to dicts.
This commit is contained in:
parent
8179b30873
commit
8761e47893
6 changed files with 32 additions and 39 deletions
|
@ -9,11 +9,11 @@ class TestEncryptBot(BotTestCase):
|
|||
bot_name = "encrypt"
|
||||
|
||||
def test_bot(self):
|
||||
expected = {
|
||||
"": "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",
|
||||
}
|
||||
expected = [
|
||||
("", "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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue