MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_get

Method test_get

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

Source from the content-addressed store, hash-verified

479 self.send_error(HTTPStatus.NOT_FOUND, 'File not found')
480
481 def test_get(self):
482 self.con = http.client.HTTPConnection(self.HOST, self.PORT)
483 self.con.connect()
484
485 with support.captured_stderr() as err:
486 self.con.request('GET', '/')
487 self.con.getresponse()
488
489 self.assertEndsWith(err.getvalue(), '"GET / HTTP/1.1" 200 -\n')
490
491 def test_err(self):
492 self.con = http.client.HTTPConnection(self.HOST, self.PORT)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected