MCPcopy
hub / github.com/urllib3/urllib3 / test_scheme_host_port

Method test_scheme_host_port

test/test_util.py:141–149  ·  view source on GitHub ↗
(
        self, url: str, scheme_host_port: tuple[str, str, int | None]
    )

Source from the content-addressed store, hash-verified

139
140 @pytest.mark.parametrize(["url", "scheme_host_port"], url_host_map)
141 def test_scheme_host_port(
142 self, url: str, scheme_host_port: tuple[str, str, int | None]
143 ) -> None:
144 parsed_url = parse_url(url)
145 scheme, host, port = scheme_host_port
146
147 assert (parsed_url.scheme or "http") == scheme
148 assert parsed_url.hostname == parsed_url.host == host
149 assert parsed_url.port == port
150
151 def test_encode_invalid_chars_none(self) -> None:
152 assert _encode_invalid_chars(None, set()) is None

Callers

nothing calls this directly

Calls 1

parse_urlFunction · 0.90

Tested by

no test coverage detected