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

Method test_as_json

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

Source from the content-addressed store, hash-verified

256 assert deps == expected
257
258 def test_as_json(self):
259 md = metadata('distinfo-pkg').json
260 assert 'name' in md
261 assert md['keywords'] == ['sample', 'package']
262 desc = md['description']
263 assert desc.startswith('Once upon a time\nThere was')
264 assert len(md['requires_dist']) == 2
265
266 def test_as_json_egg_info(self):
267 md = metadata('egginfo-pkg').json

Callers

nothing calls this directly

Calls 2

metadataFunction · 0.90
startswithMethod · 0.45

Tested by

no test coverage detected