Example #1
0
 def test_directory(self):
     init()
     move_to(dir1, dir2)
     move_to(dir1, dir2, ignore=True)
     mkdir(dir1)
     move_to(dir1, dir2, force=True)
     assert os.path.exists(dir1) == False
     assert os.path.exists(dir2_dir1) == True
Example #2
0
 def test_file(self):
     init()
     move_to(dir1_f1, dir2)
     move_to(dir1_f1, dir2, ignore=True)
     create(dir1_f1)
     move_to(dir1_f1, dir2, force=True)
     assert os.path.exists(dir1_f1) == False
     assert os.path.exists(dir2_f1) == True