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

Method test_get_missing_key

Lib/test/test_importlib/metadata/test_api.py:164–169  ·  view source on GitHub ↗

Requesting a missing key will return None.

(self)

Source from the content-addressed store, hash-verified

162 assert md.get('Name') == 'egginfo-pkg'
163
164 def test_get_missing_key(self):
165 """
166 Requesting a missing key will return None.
167 """
168 md = metadata('distinfo-pkg')
169 assert md.get('does-not-exist') is None
170
171 @staticmethod
172 def _test_files(files):

Callers

nothing calls this directly

Calls 2

metadataFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected