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

Method test_get_key

Lib/test/test_importlib/test_metadata_api.py:163–168  ·  view source on GitHub ↗

Getting a key gets the key.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

metadataFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected