MCPcopy Create free account
hub / github.com/python/cpython / check_file

Method check_file

Lib/test/test_zipfile/test_core.py:1718–1721  ·  view source on GitHub ↗
(self, filename, content)

Source from the content-addressed store, hash-verified

1716 self._test_extract_all_with_target(FakePath(extdir))
1717
1718 def check_file(self, filename, content):
1719 self.assertTrue(os.path.isfile(filename))
1720 with open(filename, 'rb') as f:
1721 self.assertEqual(f.read(), content)
1722
1723 def test_sanitize_windows_name(self):
1724 san = zipfile.ZipFile._sanitize_windows_name

Callers 1

Calls 5

assertTrueMethod · 0.80
openFunction · 0.50
isfileMethod · 0.45
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected