def test_second_response_unknown(self):
    self.chatbot.storage.create(text='Hi', in_response_to=None)
    self.chatbot.storage.create(text='Hello', in_response_to='Hi')
    first_response = self.chatbot.get_response(text='Hi', conversation='test')
    second_response = self.chatbot.get_response(text='How are you?', conversation='test')
    results = list(self.chatbot.storage.filter(text='How are you?'))
    self.assertEqual(first_response.confidence, 1)
    self.assertEqual(first_response.text, 'Hello')
    self.assertEqual(first_response.in_response_to, 'Hi')
    self.assertEqual(second_response.confidence, 0)
    self.assertEqual(second_response.in_response_to, 'How are you?')
    self.assertIsLength(results, 1)
    self.assertEqual(results[0].in_response_to, 'Hi')
def test_second_response_unknown(self):
    self.chatbot.storage.create(text='Hi', in_response_to=None)
    self.chatbot.storage.create(text='Hello', in_response_to='Hi')
    first_response = self.chatbot.get_response(text='Hi', conversation='test')
    second_response = self.chatbot.get_response(text='How are you?', conversation='test')
    results = list(self.chatbot.storage.filter(text='How are you?'))
    self.assertEqual(first_response.confidence, 1)
    self.assertEqual(first_response.text, 'Hello')
    self.assertEqual(first_response.in_response_to, 'Hi')
    self.assertEqual(second_response.confidence, 0)
    self.assertEqual(second_response.in_response_to, 'How are you?')
    self.assertIsLength(results, 1)
    self.assertEqual(results[0].in_response_to, 'Hi')