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

Method test_missing_key

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

Requesting a missing key raises KeyError.

(self)

Source from the content-addressed store, hash-verified

147 assert 'Topic :: Software Development :: Libraries' in classifiers
148
149 def test_missing_key(self):
150 """
151 Requesting a missing key raises KeyError.
152 """
153 md = metadata('distinfo-pkg')
154 with self.assertRaises(KeyError):
155 md['does-not-exist']
156
157 def test_get_key(self):
158 """

Callers

nothing calls this directly

Calls 2

metadataFunction · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected