class_docstr: Test the Ubuntu Corpus trainer class.
class_docstr_tok: ["Test","the","Ubuntu","Corpus","trainer","class","."]
docstr: Test that the chat bot is trained using data from the Ubuntu Corpus.
docstr_tok: ["Test","that","the","chat","bot","is","trained","using","data","from","the","Ubuntu","Corpus","."]
code: def test_train_sets_search_in_response_to(self):
      """
      Test that the chat bot is trained using data from the Ubuntu Corpus.
      """
      self._create_test_corpus(self._get_data())
  
      self.trainer.train()
      self._destroy_test_corpus()
  
      results = list(
          self.chatbot.storage.filter(in_response_to="Is anyone there?")
      )
  
      self.assertEqual(len(results), 2)
      self.assertEqual(
          results[0].search_in_response_to, "VERB:anyone NOUN:there"
      )
  
imports: from unittest.mock import Mock
  from io import BytesIO
  import tarfile
  import os
  from tests.base_case import ChatBotTestCase
  from chatterbot.trainers import UbuntuCorpusTrainer
label_desc: Use image node_id 14 for calling the UbuntuCorpusTrainerTestCase obj's underlying member method code with example usage: obj.test_train_sets_search_in_response_to() without return types