MCPcopy
hub / github.com/urllib3/urllib3 / test_assert_same_host

Method test_assert_same_host

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

Source from the content-addressed store, hash-verified

365 pool.request("GET", "/")
366
367 def test_assert_same_host(self) -> None:
368 with connection_from_url("http://google.com:80") as c:
369 with pytest.raises(HostChangedError):
370 c.request("GET", "http://yahoo.com:80", assert_same_host=True)
371
372 def test_pool_close(self) -> None:
373 pool = connection_from_url("http://google.com:80")

Callers

nothing calls this directly

Calls 2

connection_from_urlFunction · 0.90
requestMethod · 0.45

Tested by

no test coverage detected