def test_search_text_results_after_training(self):
    '\n        ChatterBot should return close matches to an input\n        string when filtering using the search_text parameter.\n        '
    self.chatbot.storage.create_many([Statement('Example A for search.'), Statement('Another example.'), Statement('Example B for search.'), Statement(text='Another statement.')])
    results = list(self.chatbot.storage.filter(search_text=self.chatbot.storage.tagger.get_bigram_pair_string('Example A for search.')))
    self.assertEqual('Example A for search.', results[0].text)
    self.assertEqual('Example B for search.', results[1].text)
    self.assertIsLength(results, 2)
ChatterBot should return close matches to an input
string when filtering using the search_text parameter.
def test_search_text_results_after_training(self):
    '\n        ChatterBot should return close matches to an input\n        string when filtering using the search_text parameter.\n        '
    self.chatbot.storage.create_many([Statement('Example A for search.'), Statement('Another example.'), Statement('Example B for search.'), Statement(text='Another statement.')])
    results = list(self.chatbot.storage.filter(search_text=self.chatbot.storage.tagger.get_bigram_pair_string('Example A for search.')))
    self.assertEqual('Example A for search.', results[0].text)
    self.assertEqual('Example B for search.', results[1].text)
    self.assertIsLength(results, 2)