示例#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)