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

Method test_copy

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

Source from the content-addressed store, hash-verified

1354 return (file1, file2)
1355
1356 def test_copy(self):
1357 # Ensure that the copied file exists and has the same mode bits.
1358 file1, file2 = self._copy_file(shutil.copy)
1359 self.assertTrue(os.path.exists(file2))
1360 self.assertEqual(os.stat(file1).st_mode, os.stat(file2).st_mode)
1361
1362 @os_helper.skip_unless_symlink
1363 def test_copy_symlinks(self):

Callers

nothing calls this directly

Calls 5

_copy_fileMethod · 0.95
assertTrueMethod · 0.80
existsMethod · 0.45
assertEqualMethod · 0.45
statMethod · 0.45

Tested by

no test coverage detected