(self)
| 99 | response.read() |
| 100 | |
| 101 | def test_get_css(self): |
| 102 | self.client.request("GET", "/pydoc.css") |
| 103 | response = self.client.getresponse() |
| 104 | |
| 105 | self.assertEqual(response.status, 200) |
| 106 | self.assertEqual(response.getheader("Content-type"), "text/css; charset=UTF-8") |
| 107 | |
| 108 | # Server raises an exception if we don't start to read the data |
| 109 | response.read() |
| 110 | |
| 111 | def test_invalid_get_response(self): |
| 112 | self.client.request("GET", "/spam") |
nothing calls this directly
no test coverage detected