python-zulip-api/bots/helloworld/test_helloworld.py
2017-06-19 07:11:08 -04:00

17 lines
423 B
Python

#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import print_function
from six.moves import zip
from bots_test_lib import BotTestCase
class TestHelloWorldBot(BotTestCase):
bot_name = "helloworld"
def test_bot(self):
txt = "beep boop"
messages = ["", "foo", "Hi, my name is abc"]
self.check_expected_responses(dict(list(zip(messages, len(messages)*[txt]))))