aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_cli.py')
-rw-r--r--tests/test_cli.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 425bce9..b8fffea 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -160,7 +160,12 @@ class TestParse(unittest.TestCase):
headers = manifest.pop("headers")
self.assertNotIn("example.org", json.dumps(manifest))
# And nothing shaped like an address survives in the exception.
- self.assertNotIn("@example.org", json.dumps(headers))
+ # Both spellings: you%40example.org is not a hypothetical, it is why
+ # leaky.eml exists, and docs/plans/2026-09-09-contacts.md records a
+ # From of phish@victim%40example.org.invalid.
+ blob = json.dumps(headers)
+ self.assertNotIn("@example.org", blob)
+ self.assertNotIn("you%40example.org", blob)
names = [name for name, _ in headers]
for name in ("To", "Cc", "Delivered-To", "X-Original-To"):
self.assertNotIn(name, names)