MCPcopy
hub / github.com/urllib3/urllib3 / test_invalid_scheme

Method test_invalid_scheme

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

Source from the content-addressed store, hash-verified

50 assert p.proxy.port == 443
51
52 def test_invalid_scheme(self) -> None:
53 with pytest.raises(AssertionError):
54 ProxyManager("invalid://host/p")
55 with pytest.raises(ValueError):
56 ProxyManager("invalid://host/p")
57
58 def test_proxy_tunnel(self) -> None:
59 http_url = parse_url("http://example.com")

Callers

nothing calls this directly

Calls 1

ProxyManagerClass · 0.90

Tested by

no test coverage detected