Example #1
0
    def test_ask_question_without_triggermgr(self):
        bot_config = BotConfiguration()
        client = TestClient()
        client._trigger_mgr = None
        bot = Bot(bot_config, client)

        bot.ask_question(self._client_context, "HELLO WORLD")
Example #2
0
    def test_handle_none_respons_withtriggermgr(self):
        bot_config = BotConfiguration()
        client = TestClient()
        client._trigger_mgr = MockTriggerManager()
        bot = Bot(bot_config, client)

        bot.ask_question(self._client_context, "HELLO WORLD")
        self.assertTrue(client._trigger_mgr._triggered)