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

Method setUp

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

Source from the content-addressed store, hash-verified

371 self.wfile.write(f'OK: here is {self.path}\r\n'.encode())
372
373 def setUp(self):
374 super().setUp()
375 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
376 self.sock = self.enterContext(self.sock)
377 self.sock.connect((self.HOST, self.PORT))
378
379 def test_simple_get(self):
380 self.sock.send(b'GET /index.html\r\n')

Callers

nothing calls this directly

Calls 5

superClass · 0.85
socketMethod · 0.80
enterContextMethod · 0.80
setUpMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected