(self)
| 89 | self.serv.server_close() |
| 90 | |
| 91 | def test_valid_get_response(self): |
| 92 | self.client.request("GET", "/") |
| 93 | response = self.client.getresponse() |
| 94 | |
| 95 | self.assertEqual(response.status, 200) |
| 96 | self.assertEqual(response.getheader("Content-type"), "text/html; charset=UTF-8") |
| 97 | |
| 98 | # Server raises an exception if we don't start to read the data |
| 99 | response.read() |
| 100 | |
| 101 | def test_get_css(self): |
| 102 | self.client.request("GET", "/pydoc.css") |
nothing calls this directly
no test coverage detected