Added too many argument test for googletranslate bot.
MODIFY
zulip_bots/zulip_bots/bots/googletranslate/test_googletranslate.py
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'):

Added too many argument test for googletranslate bot.