def test_no_statements_known(self):
    "\n        If there is no statements in the database, then the\n        user's input is the only thing that can be returned.\n        "
    statement_text = 'How are you?'
    response = self.chatbot.get_response(statement_text)
    results = list(self.chatbot.storage.filter(text=statement_text))
    self.assertEqual(response.text, statement_text)
    self.assertEqual(response.confidence, 0)
    self.assertIsLength(results, 2)
    self.assertEqual(results[0].text, statement_text)
    self.assertEqual(results[1].text, statement_text)
If there is no statements in the database, then the
user's input is the only thing that can be returned.
def test_no_statements_known(self):
    "\n        If there is no statements in the database, then the\n        user's input is the only thing that can be returned.\n        "
    statement_text = 'How are you?'
    response = self.chatbot.get_response(statement_text)
    results = list(self.chatbot.storage.filter(text=statement_text))
    self.assertEqual(response.text, statement_text)
    self.assertEqual(response.confidence, 0)
    self.assertIsLength(results, 2)
    self.assertEqual(results[0].text, statement_text)
    self.assertEqual(results[1].text, statement_text)