MCPcopy Index your code
hub / github.com/python/cpython / _check_move_dir

Method _check_move_dir

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

Source from the content-addressed store, hash-verified

2752 self.assertFalse(os.path.exists(src))
2753
2754 def _check_move_dir(self, src, dst, real_dst):
2755 contents = sorted(os.listdir(src))
2756 shutil.move(src, dst)
2757 self.assertEqual(contents, sorted(os.listdir(real_dst)))
2758 self.assertFalse(os.path.exists(src))
2759
2760 def test_move_file(self):
2761 # 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 5

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

Tested by

no test coverage detected