python-zulip-api/zulip_bots/zulip_bots/bots/help/test_help.py

18 lines
460 B
Python
Raw Normal View History

from zulip_bots.test_lib import BotTestCase, DefaultTests
2017-12-07 14:44:42 -05:00
from typing import Any
class TestHelpBot(BotTestCase, DefaultTests):
bot_name = "help"
2017-12-08 11:39:59 -05:00
def test_bot(self) -> None:
help_text = "Info on Zulip can be found here:\nhttps://github.com/zulip/zulip"
requests = ["", "help", "Hi, my name is abc"]
dialog = [
(request, help_text)
for request in requests
]
self.verify_dialog(dialog)