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

Method test_move_dir_special_function

Lib/test/test_shutil.py:2889–2896  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2887
2888 @mock_rename
2889 def test_move_dir_special_function(self):
2890 moved = []
2891 def _copy(src, dst):
2892 moved.append((src, dst))
2893 os_helper.create_empty_file(os.path.join(self.src_dir, 'child'))
2894 os_helper.create_empty_file(os.path.join(self.src_dir, 'child1'))
2895 shutil.move(self.src_dir, self.dst_dir, copy_function=_copy)
2896 self.assertEqual(len(moved), 3)
2897
2898 def test_move_dir_caseinsensitive(self):
2899 # Renames a folder to the same name

Callers

nothing calls this directly

Calls 4

lenFunction · 0.85
joinMethod · 0.45
moveMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected