MCPcopy
hub / github.com/urllib3/urllib3 / test_default_port

Method test_default_port

test/test_proxymanager.py:44–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 assert headers == expected_headers
43
44 def test_default_port(self) -> None:
45 with ProxyManager("http://something") as p:
46 assert p.proxy is not None
47 assert p.proxy.port == 80
48 with ProxyManager("https://something") as p:
49 assert p.proxy is not None
50 assert p.proxy.port == 443
51
52 def test_invalid_scheme(self) -> None:
53 with pytest.raises(AssertionError):

Callers

nothing calls this directly

Calls 1

ProxyManagerClass · 0.90

Tested by

no test coverage detected