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

Method test_handler

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

Source from the content-addressed store, hash-verified

279 self.assertEqual(res.status, HTTPStatus.NOT_IMPLEMENTED)
280
281 def test_handler(self):
282 self.con.request('TEST', '/')
283 res = self.con.getresponse()
284 self.assertEqual(res.status, HTTPStatus.NO_CONTENT)
285
286 def test_return_header_keep_alive(self):
287 self.con.request('KEEP', '/')

Callers

nothing calls this directly

Calls 3

requestMethod · 0.45
getresponseMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected