Exemple #1
0
 def test_directory(self):
     init()
     archive(dir1)
     archive(dir1, 'archive')
     assert os.path.exists(dir1) == True
     assert os.path.exists(dir1_tar) == True
     assert os.path.exists(dir1_archive_tar) == True
Exemple #2
0
 def test_FileTypeError(self):
     init()
     with raises(FileTypeError):
         archive(dir1_f1)
     init()
     with raises(FileTypeError):
         f = TargetFile(dir1)
     with raises(FileTypeError):
         d = TargetDirectory(dir1_f1)
Exemple #3
0
 def test_FileTypeError(self):
     init()
     with raises(FileTypeError):
         archive(dir1_f1)