def test_learn_response(self):
    previous_response = Statement(text='Define Hemoglobin.')
    statement = Statement(text='Hemoglobin is an oxygen-transport metalloprotein.')
    self.chatbot.learn_response(statement, previous_response)
    results = list(self.chatbot.storage.filter(text=statement.text))
    self.assertIsLength(results, 1)
def test_learn_response(self):
    previous_response = Statement(text='Define Hemoglobin.')
    statement = Statement(text='Hemoglobin is an oxygen-transport metalloprotein.')
    self.chatbot.learn_response(statement, previous_response)
    results = list(self.chatbot.storage.filter(text=statement.text))
    self.assertIsLength(results, 1)