aboutsummaryrefslogtreecommitdiff
path: root/tests/test_net.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/test_net.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/test_net.py b/tests/test_net.py
index 472ae91..6ff267d 100644
--- a/tests/test_net.py
+++ b/tests/test_net.py
@@ -25,7 +25,6 @@ from webmentions_ssg.net import (
is_http_url,
is_public_address,
media_type_of,
- normalized_hostname,
read_limited_body,
resolve_public_addresses,
)
@@ -344,19 +343,6 @@ def test_is_retryable_status(app: Flask, status: int, expected: bool) -> None:
@pytest.mark.parametrize(
- ("url", "expected"),
- [
- pytest.param("https://EXAMPLE.com./path", "example.com", id="trailing-dot"),
- pytest.param("http://[2001:db8::1]/", "2001:db8::1", id="ipv6"),
- pytest.param("https:///path", None, id="missing-host"),
- pytest.param("http://[::1", None, id="malformed-ipv6"),
- ],
-)
-def test_normalized_hostname(url: str, expected: str | None) -> None:
- assert normalized_hostname(url) == expected
-
-
-@pytest.mark.parametrize(
("headers", "expected"),
[
pytest.param({}, "", id="missing"),