MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_get_key

Method test_get_key

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

Getting a key gets the key.

(self)

Source from the content-addressed store, hash-verified

162 assert md['does-not-exist'] is None
163
164 def test_get_key(self):
165 """
166 Getting a key gets the key.
167 """
168 md = metadata('egginfo-pkg')
169 assert md.get('Name') == 'egginfo-pkg'
170
171 def test_get_missing_key(self):
172 """

Callers

nothing calls this directly

Calls 2

metadataFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected