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
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
def test_FileNotFoundError(self): init() with raises(FileNotFoundError): move('none', 'none')