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

Method _check_move_file

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

Source from the content-addressed store, hash-verified

2718 create_file(self.src_file, b"spam")
2719
2720 def _check_move_file(self, src, dst, real_dst):
2721 with open(src, "rb") as f:
2722 contents = f.read()
2723 shutil.move(src, dst)
2724 with open(real_dst, "rb") as f:
2725 self.assertEqual(contents, f.read())
2726 self.assertFalse(os.path.exists(src))
2727
2728 def _check_move_dir(self, src, dst, real_dst):
2729 contents = sorted(os.listdir(src))

Calls 6

assertFalseMethod · 0.80
openFunction · 0.50
readMethod · 0.45
moveMethod · 0.45
assertEqualMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected