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

Method _create_connection

Lib/test/test_httplib.py:2381–2384  ·  view source on GitHub ↗
(self, response_text)

Source from the content-addressed store, hash-verified

2379 self.conn.close()
2380
2381 def _create_connection(self, response_text):
2382 def create_connection(address, timeout=None, source_address=None):
2383 return FakeSocket(response_text, host=address[0], port=address[1])
2384 return create_connection
2385
2386 def test_set_tunnel_host_port_headers_add_host_missing(self):
2387 tunnel_host = 'destination.com'

Callers 5

setUpMethod · 0.95
test_tunnel_debuglogMethod · 0.95
connectMethod · 0.80

Calls 1

FakeSocketClass · 0.70

Tested by

no test coverage detected