def test_force_make_dest_dir__extant_not_empty(self):
     # The existing directory should be removed and a new empty directory
     # should be in its place.
     make_dest_dir(self.test_dest_dir, True)
     self.assertTrue(os.path.exists(self.test_dest_dir))
     self.assertEqual([], os.listdir(self.test_dest_dir))
Exemple #2
0
 def test_make_dest_dir__non_extant(self):
     # Set up by removing (existing) directory.
     clear_non_empty_dir(self.test_dest_dir)
     # A new empty directory should be created.
     make_dest_dir(self.test_dest_dir, False)
     self.assertTrue(os.path.exists(self.test_dest_dir))
 def test_make_dest_dir__non_extant(self):
     # Set up by removing (existing) directory.
     clear_non_empty_dir(self.test_dest_dir)
     # A new empty directory should be created.
     make_dest_dir(self.test_dest_dir, False)
     self.assertTrue(os.path.exists(self.test_dest_dir))
Exemple #4
0
 def test_force_make_dest_dir__extant_not_empty(self):
     # The existing directory should be removed and a new empty directory
     # should be in its place.
     make_dest_dir(self.test_dest_dir, True)
     self.assertTrue(os.path.exists(self.test_dest_dir))
     self.assertEqual([], os.listdir(self.test_dest_dir))