def test_get_latest_response_from_two_responses(self):
    self.chatbot.storage.create(text='A', conversation='test')
    self.chatbot.storage.create(text='B', conversation='test', in_response_to='A')
    self.chatbot.storage.create(text='C', conversation='test', in_response_to='B')
    response = self.chatbot.get_latest_response('test')
    self.assertEqual(response.text, 'B')
def test_get_latest_response_from_two_responses(self):
    self.chatbot.storage.create(text='A', conversation='test')
    self.chatbot.storage.create(text='B', conversation='test', in_response_to='A')
    self.chatbot.storage.create(text='C', conversation='test', in_response_to='B')
    response = self.chatbot.get_latest_response('test')
    self.assertEqual(response.text, 'B')