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

Method test_version_bogus

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

Source from the content-addressed store, hash-verified

199 self.assertEqual(res.status, HTTPStatus.NOT_IMPLEMENTED)
200
201 def test_version_bogus(self):
202 self.con._http_vsn_str = 'FUBAR'
203 self.con.putrequest('GET', '/')
204 self.con.endheaders()
205 res = self.con.getresponse()
206 self.assertEqual(res.status, HTTPStatus.BAD_REQUEST)
207
208 def test_version_digits(self):
209 self.con._http_vsn_str = 'HTTP/9.9.9'

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