def test_four_statements_three_responses_known(self):
    self.chatbot.storage.create(text='Hi', in_response_to=None)
    self.chatbot.storage.create(text='Hello', in_response_to='Hi')
    self.chatbot.storage.create(text='How are you?', in_response_to='Hello')
    self.chatbot.storage.create(text='I am well.', in_response_to='How are you?')
    first_response = self.chatbot.get_response('Hi')
    second_response = self.chatbot.get_response('How are you?')
    self.assertEqual(first_response.confidence, 1)
    self.assertEqual(first_response.text, 'Hello')
    self.assertEqual(second_response.confidence, 1)
    self.assertEqual(second_response.text, 'I am well.')
def test_four_statements_three_responses_known(self):
    self.chatbot.storage.create(text='Hi', in_response_to=None)
    self.chatbot.storage.create(text='Hello', in_response_to='Hi')
    self.chatbot.storage.create(text='How are you?', in_response_to='Hello')
    self.chatbot.storage.create(text='I am well.', in_response_to='How are you?')
    first_response = self.chatbot.get_response('Hi')
    second_response = self.chatbot.get_response('How are you?')
    self.assertEqual(first_response.confidence, 1)
    self.assertEqual(first_response.text, 'Hello')
    self.assertEqual(second_response.confidence, 1)
    self.assertEqual(second_response.text, 'I am well.')