Example #1
0
 def test_file(self):
     init()
     move(dir1_f1, dir2_f1)
     move(dir1_f1, dir2_f1, ignore=True)
     create(dir1_f1)
     move(dir1_f1, dir2_f1, force=True)
     assert os.path.exists(dir1_f1) == False
     assert os.path.exists(dir2_f1) == True
Example #2
0
 def test_directory(self):
     init()
     move(dir1, dir2_dir1)
     move(dir1, dir2_dir1, ignore=True)
     mkdir(dir1)
     move(dir1, dir2_dir1, force=True)
     assert os.path.exists(dir1) == False
     assert os.path.exists(dir2_dir1) == True
Example #3
0
 def test_FileNotFoundError(self):
     init()
     with raises(FileNotFoundError):
         move('none', 'none')