mostr-zulip-bot/zulip_bots/zulip_bots/bots/encrypt/test_encrypt.py
Anders Kaseorg 353c2de050 ruff: Fix EXE002 The file is executable but no shebang is present.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-29 16:54:40 -07:00

15 lines
583 B
Python

from zulip_bots.test_lib import BotTestCase, DefaultTests
class TestEncryptBot(BotTestCase, DefaultTests):
bot_name = "encrypt"
def test_bot(self) -> None:
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.verify_dialog(dialog)