class_docstr: Test the Ubuntu Corpus trainer class.
class_docstr_tok: ["Test","the","Ubuntu","Corpus","trainer","class","."]
docstr: Test that a check can be done for if the corpus has aleady been extracted.
docstr_tok: ["Test","that","a","check","can","be","done","for","if","the","corpus","has","aleady","been","extracted","."]
code: def test_is_extracted(self):
      """
      Test that a check can be done for if the corpus has aleady been extracted.
      """
      file_object_path = self._create_test_corpus(self._get_data())
      self.trainer.extract(file_object_path)
  
      extracted = self.trainer.is_extracted(
          self.trainer.extracted_data_directory
      )
      self._destroy_test_corpus()
  
      self.assertTrue(extracted)
  
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 15 for calling the UbuntuCorpusTrainerTestCase obj's underlying member method code with example usage: obj.test_is_extracted() without return types