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

Method test_version_invalid

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

Source from the content-addressed store, hash-verified

249 self.assertEqual(res.status, HTTPStatus.BAD_REQUEST)
250
251 def test_version_invalid(self):
252 self.con._http_vsn = 99
253 self.con._http_vsn_str = 'HTTP/9.9'
254 self.con.putrequest('GET', '/')
255 self.con.endheaders()
256 res = self.con.getresponse()
257 self.assertEqual(res.status, HTTPStatus.HTTP_VERSION_NOT_SUPPORTED)
258
259 def test_send_blank(self):
260 self.con._http_vsn_str = ''

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