(self)
| 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' |
nothing calls this directly
no test coverage detected