示例#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
示例#2
0
文件: test.py 项目: shunfan/porter
 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)
示例#3
0
 def test_FileTypeError(self):
     init()
     with raises(FileTypeError):
         archive(dir1_f1)