MCPcopy
hub / github.com/urllib3/urllib3 / test_parse_url_negative_port

Method test_parse_url_negative_port

test/test_util.py:342–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

340 parse_url("[::1")
341
342 def test_parse_url_negative_port(self) -> None:
343 with pytest.raises(LocationParseError):
344 parse_url("https://www.google.com:-80/")
345
346 def test_parse_url_remove_leading_zeros(self) -> None:
347 url = parse_url("https://example.com:0000000000080")

Callers

nothing calls this directly

Calls 1

parse_urlFunction · 0.90

Tested by

no test coverage detected