예제 #1
0
파일: test.py 프로젝트: hypercoregz/porter
 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
파일: test.py 프로젝트: hypercoregz/porter
 def test_FileTypeError(self):
     init()
     with raises(FileTypeError):
         archive(dir1_f1)