def test_get_random_response(self):
        statement_list = [
            Statement(text='This is a phone.'),
            Statement(text='A what?'),
            Statement(text='A phone.')
        ]

        output = response_selection.get_random_response(Statement(text='Hello'), statement_list)

        self.assertTrue(output)
示例#2
0
    def test_get_random_response(self):
        statement_list = [
            Statement('This is a phone.'),
            Statement('A what?'),
            Statement('A phone.')
        ]

        output = response_selection.get_random_response(Statement('Hello'), statement_list)

        self.assertTrue(output)