(self)
| 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 |
| 245 | self.con._http_vsn_str = '' |
| 246 | self.con.putrequest('CUSTOM', '/') |
| 247 | self.con.endheaders() |
| 248 | res = self.con.getresponse() |
| 249 | self.assertEqual(res.status, HTTPStatus.BAD_REQUEST) |
| 250 | |
| 251 | def test_version_invalid(self): |
| 252 | self.con._http_vsn = 99 |
nothing calls this directly
no test coverage detected