MCPcopy
hub / github.com/urllib3/urllib3 / test_url_from_pool

Method test_url_from_pool

test/test_connectionpool.py:456–459  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

454 old_pool_queue.get(block=False)
455
456 def test_url_from_pool(self) -> None:
457 with connection_from_url("http://google.com:80") as pool:
458 path = "path?query=foo"
459 assert f"http://google.com:80/{path}" == _url_from_pool(pool, path)
460
461 def test_ca_certs_default_cert_required(self) -> None:
462 with connection_from_url("https://google.com:80", ca_certs=DEFAULT_CA) as pool:

Callers

nothing calls this directly

Calls 2

connection_from_urlFunction · 0.90
_url_from_poolFunction · 0.90

Tested by

no test coverage detected