MCPcopy Index your code
hub / github.com/RustPython/RustPython / _check_move_dir

Method _check_move_dir

Lib/test/test_shutil.py:2728–2732  ·  view source on GitHub ↗
(self, src, dst, real_dst)

Source from the content-addressed store, hash-verified

2726 self.assertFalse(os.path.exists(src))
2727
2728 def _check_move_dir(self, src, dst, real_dst):
2729 contents = sorted(os.listdir(src))
2730 shutil.move(src, dst)
2731 self.assertEqual(contents, sorted(os.listdir(real_dst)))
2732 self.assertFalse(os.path.exists(src))
2733
2734 def test_move_file(self):
2735 # Move a file to another location on the same filesystem.

Callers 4

test_move_dirMethod · 0.95
test_move_dir_to_dirMethod · 0.95

Calls 6

sortedFunction · 0.85
listdirMethod · 0.80
assertFalseMethod · 0.80
moveMethod · 0.45
assertEqualMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected