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

Method test_version_none_get

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

Source from the content-addressed store, hash-verified

234 self.assertEqual(res.status, HTTPStatus.BAD_REQUEST)
235
236 def test_version_none_get(self):
237 self.con._http_vsn_str = ''
238 self.con.putrequest('GET', '/')
239 self.con.endheaders()
240 res = self.con.getresponse()
241 self.assertEqual(res.status, HTTPStatus.NOT_IMPLEMENTED)
242
243 def test_version_none(self):
244 # Test that a valid method is rejected when not HTTP/1.x

Callers

nothing calls this directly

Calls 4

putrequestMethod · 0.80
endheadersMethod · 0.80
getresponseMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected