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

Method test_file_hash_repr

Lib/test/test_importlib/metadata/test_api.py:184–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

182 file.read_text()
183
184 def test_file_hash_repr(self):
185 util = [p for p in files('distinfo-pkg') if p.name == 'mod.py'][0]
186 self.assertRegex(repr(util.hash), '<FileHash mode: sha256 value: .*>')
187
188 def test_files_dist_info(self):
189 self._test_files(files('distinfo-pkg'))

Callers

nothing calls this directly

Calls 2

filesFunction · 0.90
assertRegexMethod · 0.80

Tested by

no test coverage detected