MCPcopy Index your code
hub / github.com/python/cpython / test_get

Method test_get

Lib/test/test_httpservers.py:483–491  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 5

assertEndsWithMethod · 0.80
connectMethod · 0.45
requestMethod · 0.45
getresponseMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected