예제 #1
0
파일: test.py 프로젝트: hypercoregz/porter
 def test_directory(self):
     init()
     copy_to(dir1, dir2)
     copy_to(dir1, dir2, ignore=True)
     copy_to(dir1, dir2, force=True)
     assert os.path.exists(dir1) == True
     assert os.path.exists(dir2_dir1) == True
예제 #2
0
파일: test.py 프로젝트: hypercoregz/porter
 def test_file(self):
     init()
     copy_to(dir1_f1, dir2)
     copy_to(dir1_f1, dir2, ignore=True)
     copy_to(dir1_f1, dir2, force=True)
     assert os.path.exists(dir1_f1) == True
     assert os.path.exists(dir2_f1) == True