aboutsummaryrefslogtreecommitdiff
path: root/tests/test_net.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/test_net.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_net.py b/tests/test_net.py
index 4ac138d..b778310 100644
--- a/tests/test_net.py
+++ b/tests/test_net.py
@@ -42,7 +42,10 @@ def test_backend_rejects_private_ip_without_socket(
def test_rebinding_cannot_change_socket_peer(monkeypatch: pytest.MonkeyPatch) -> None:
- """The address is resolved exactly once and the socket sees only that IP."""
+ """Verify that DNS rebinding cannot change the connected socket peer.
+
+ :param monkeypatch: Pytest fixture for replacing the DNS resolver and socket calls.
+ """
dns = Mock(return_value=("93.184.216.34",))
monkeypatch.setattr("webmentions_ssg.net.public_addresses", dns)
socket_instance = Mock()