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

Method test_handler

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

Source from the content-addressed store, hash-verified

277 self.assertEqual(res.status, HTTPStatus.NOT_IMPLEMENTED)
278
279 def test_handler(self):
280 self.con.request('TEST', '/')
281 res = self.con.getresponse()
282 self.assertEqual(res.status, HTTPStatus.NO_CONTENT)
283
284 def test_return_header_keep_alive(self):
285 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