def tearDown(self): # Remove the test data directory (and copy) self.example_dir.delete_directory() if self.example_dir2 is not None: self.example_dir2.delete_directory() TestUtils.remove_dir(self.archive_dir) TestUtils.remove_dir(self.log_dir)
def setUp(self): # Make test directories self.empty_dir1 = TestUtils.make_dir() self.empty_dir2 = TestUtils.make_dir() self.dir1 = ExampleDirScooby() self.dir2 = ExampleDirScooby() self.dir1.create_directory() self.dir2.create_directory()
def setUp(self): # Make a test data directory structure self.example_dir = ExampleDirLanguages() self.data_dir = self.example_dir.create_directory() self.archive_dir = TestUtils.make_dir() self.log_dir = TestUtils.make_dir() # Placeholders for additional data structures # These should be set in the tests where multiple # directories are required self.example_dir2 = None self.data_dir2 = None
def setUp(self): # Create a set of files to compare self.file1 = TestUtils.make_file(None,"This is a test file") self.file2 = TestUtils.make_file(None,"This is a test file") self.file3 = TestUtils.make_file(None,"This is another test file")