botserver: Verify bot response.

This allows for more realistic testing.
This commit is contained in:
Robert Hönig 2018-05-28 18:47:18 +02:00 committed by Tim Abbott
parent 4285cef29c
commit 5c062cee0d
2 changed files with 13 additions and 0 deletions

View file

@ -32,6 +32,7 @@ class BotServerTests(BotServerTestCase):
bots_config=bots_config,
event=dict(message={'content': "test message"},
bot_email='helloworld-bot@zulip.com'),
expected_response="beep boop",
check_success=True)
def test_successful_request_from_two_bots(self) -> None:
@ -51,6 +52,7 @@ class BotServerTests(BotServerTestCase):
self.assert_bot_server_response(available_bots=available_bots,
event=dict(message={'content': "test message"},
bot_email='helloworld-bot@zulip.com'),
expected_response="beep boop",
bots_config=bots_config,
check_success=True)