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

Method test_version_digits

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

Source from the content-addressed store, hash-verified

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'
210 self.con.putrequest('GET', '/')
211 self.con.endheaders()
212 res = self.con.getresponse()
213 self.assertEqual(res.status, HTTPStatus.BAD_REQUEST)
214
215 def test_version_signs_and_underscores(self):
216 self.con._http_vsn_str = 'HTTP/-9_9_9.+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