(self)
| 481 | self.send_error(HTTPStatus.NOT_FOUND, 'File not found') |
| 482 | |
| 483 | def test_get(self): |
| 484 | self.con = http.client.HTTPConnection(self.HOST, self.PORT) |
| 485 | self.con.connect() |
| 486 | |
| 487 | with support.captured_stderr() as err: |
| 488 | self.con.request('GET', '/') |
| 489 | self.con.getresponse() |
| 490 | |
| 491 | self.assertEndsWith(err.getvalue(), '"GET / HTTP/1.1" 200 -\n') |
| 492 | |
| 493 | def test_err(self): |
| 494 | self.con = http.client.HTTPConnection(self.HOST, self.PORT) |
nothing calls this directly
no test coverage detected