(self)
| 760 | |
| 761 | class HTTPResponseTestCase(unittest.TestCase): |
| 762 | def test_str(self): |
| 763 | response = HTTPResponse( # type: ignore |
| 764 | HTTPRequest("http://example.com"), 200, buffer=BytesIO() |
| 765 | ) |
| 766 | s = str(response) |
| 767 | self.assertTrue(s.startswith("HTTPResponse(")) |
| 768 | self.assertIn("code=200", s) |
| 769 | |
| 770 | |
| 771 | class SyncHTTPClientTest(unittest.TestCase): |
nothing calls this directly
no test coverage detected