MCPcopy
hub / github.com/urllib3/urllib3 / test_parse_url_normalization

Method test_parse_url_normalization

test/test_util.py:212–217  ·  view source on GitHub ↗

Assert parse_url normalizes the scheme/host, and only the scheme/host

(
        self, url: str, expected_normalized_url: str
    )

Source from the content-addressed store, hash-verified

210 ],
211 )
212 def test_parse_url_normalization(
213 self, url: str, expected_normalized_url: str
214 ) -> None:
215 """Assert parse_url normalizes the scheme/host, and only the scheme/host"""
216 actual_normalized_url = parse_url(url).url
217 assert actual_normalized_url == expected_normalized_url
218
219 @pytest.mark.parametrize("char", [chr(i) for i in range(0x00, 0x21)] + ["\x7f"])
220 def test_control_characters_are_percent_encoded(self, char: str) -> None:

Callers

nothing calls this directly

Calls 1

parse_urlFunction · 0.90

Tested by

no test coverage detected