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
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)
def test_FileTypeError(self): init() with raises(FileTypeError): archive(dir1_f1)