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

Method setUp

Lib/test/test_httplib.py:2367–2376  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2365
2366class TunnelTests(TestCase):
2367 def setUp(self):
2368 response_text = (
2369 'HTTP/1.1 200 OK\r\n\r\n' # Reply to CONNECT
2370 'HTTP/1.1 200 OK\r\n' # Reply to HEAD
2371 'Content-Length: 42\r\n\r\n'
2372 )
2373 self.host = 'proxy.com'
2374 self.port = client.HTTP_PORT
2375 self.conn = client.HTTPConnection(self.host)
2376 self.conn._create_connection = self._create_connection(response_text)
2377
2378 def tearDown(self):
2379 self.conn.close()

Callers

nothing calls this directly

Calls 1

_create_connectionMethod · 0.95

Tested by

no test coverage detected