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

Method assert_files_eq

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

Source from the content-addressed store, hash-verified

3116 yield (src, dst)
3117
3118 def assert_files_eq(self, src, dst):
3119 with open(src, 'rb') as fsrc:
3120 with open(dst, 'rb') as fdst:
3121 self.assertEqual(fsrc.read(), fdst.read())
3122
3123 def test_content(self):
3124 with self.get_files() as (src, dst):

Callers 2

test_contentMethod · 0.95
test_win_implMethod · 0.95

Calls 3

openFunction · 0.50
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected