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

Method test_internal_key_error

Lib/test/test_httpservers.py:293–296  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

291 self.addCleanup(self.con.close)
292
293 def test_internal_key_error(self):
294 self.con.request('KEYERROR', '/')
295 res = self.con.getresponse()
296 self.assertEqual(res.status, 999)
297
298 def test_return_custom_status(self):
299 self.con.request('CUSTOM', '/')

Callers

nothing calls this directly

Calls 3

requestMethod · 0.45
getresponseMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected