diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_util.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_util.py b/test/test_util.py index e64c0cfc..78243552 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -348,6 +348,10 @@ class TestUtil: with pytest.raises(LocationParseError): parse_url("https://www.google.com:-80/") + def test_parse_url_remove_leading_zeros(self) -> None: + url = parse_url("https://example.com:0000000000080") + assert url.port == 80 + def test_Url_str(self) -> None: U = Url("http", host="google.com") assert str(U) == U.url |