def test_directory(self): init() rename(dir1, dir2, force=True) assert not os.path.exists(dir1) assert os.path.exists(dir2)
def test_file(self): init() rename(dir2_f2, 'f1.txt') assert not os.path.exists(dir2_f2) assert os.path.exists(dir2_f1)