(self)
| 234 | self.assertEqual(res.status, HTTPStatus.BAD_REQUEST) |
| 235 | |
| 236 | def test_version_none_get(self): |
| 237 | self.con._http_vsn_str = '' |
| 238 | self.con.putrequest('GET', '/') |
| 239 | self.con.endheaders() |
| 240 | res = self.con.getresponse() |
| 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 |
nothing calls this directly
no test coverage detected