예제 #1
0
파일: test.py 프로젝트: shunfan/porter
 def test_directory(self):
     init()
     rename(dir1, dir2, force=True)
     assert not os.path.exists(dir1)
     assert os.path.exists(dir2)
예제 #2
0
파일: test.py 프로젝트: shunfan/porter
 def test_file(self):
     init()
     rename(dir2_f2, 'f1.txt')
     assert not os.path.exists(dir2_f2)
     assert os.path.exists(dir2_f1)