From 841efcde803b474988f53e62e6eb8dbcfe052a6e Mon Sep 17 00:00:00 2001 From: fredfishgames Date: Fri, 8 Dec 2017 17:08:29 +0000 Subject: [PATCH] Added too many argument test for googletranslate bot. --- .../bots/googletranslate/test_googletranslate.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zulip_bots/zulip_bots/bots/googletranslate/test_googletranslate.py b/zulip_bots/zulip_bots/bots/googletranslate/test_googletranslate.py index a3b5b66..31f8ed9 100644 --- a/zulip_bots/zulip_bots/bots/googletranslate/test_googletranslate.py +++ b/zulip_bots/zulip_bots/bots/googletranslate/test_googletranslate.py @@ -83,6 +83,16 @@ class TestGoogleTranslateBot(BotTestCase): expected_method = 'send_reply' ) + def test_help_too_many_args(self): + with self.mock_config_info({'key': 'abcdefg'}), \ + self.mock_http_conversation('test_languages'): + self.initialize_bot() + self.assert_bot_response( + message = {'content': '"hello" de english foo bar', 'sender_full_name': 'tester'}, + response = {'content': help_text}, + expected_method = 'send_reply' + ) + def test_help_no_langs(self): with self.mock_config_info({'key': 'abcdefg'}), \ self.mock_http_conversation('test_languages'):