MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_str

Method test_str

python/python3/tornado/test/httpclient_test.py:762–768  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

760
761class 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
771class SyncHTTPClientTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

HTTPResponseClass · 0.90
HTTPRequestClass · 0.90

Tested by

no test coverage detected