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

Method test_as_json_egg_info

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

Source from the content-addressed store, hash-verified

264 assert len(md['requires_dist']) == 2
265
266 def test_as_json_egg_info(self):
267 md = metadata('egginfo-pkg').json
268 assert 'name' in md
269 assert md['keywords'] == ['sample', 'package']
270 desc = md['description']
271 assert desc.startswith('Once upon a time\nThere was')
272 assert len(md['classifier']) == 2
273
274 def test_as_json_odd_case(self):
275 self.make_uppercase()

Callers

nothing calls this directly

Calls 2

metadataFunction · 0.90
startswithMethod · 0.45

Tested by

no test coverage detected