python-zulip-api/zulip_bots/zulip_bots/bots/help/test_help.py
Steve Howell fd069dff82 lint: Require python3 shebangs.
This commit was originally from @fredfishgames, but it
needed a big rebase due to use letting it sit too long.
Also, we decided not to have shebangs at the top of test
files.
2017-12-12 07:14:16 -06:00

18 lines
440 B
Python
Executable file

from zulip_bots.test_lib import StubBotTestCase
from typing import Any
class TestHelpBot(StubBotTestCase):
bot_name = "help"
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)