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

Method test_get_key

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

Getting a key gets the key.

(self)

Source from the content-addressed store, hash-verified

155 md['does-not-exist']
156
157 def test_get_key(self):
158 """
159 Getting a key gets the key.
160 """
161 md = metadata('egginfo-pkg')
162 assert md.get('Name') == 'egginfo-pkg'
163
164 def test_get_missing_key(self):
165 """

Callers

nothing calls this directly

Calls 2

metadataFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected