summaryrefslogtreecommitdiff
path: root/tests/validators
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-07-20 18:00:23 +0200
committerClaude Paroz <claude@2xlibre.net>2013-07-21 21:11:32 +0200
commit11b7b9ad0040cbe78d17514373475ee41179d3fa (patch)
tree8295d4056eae1ceff0d55d438c139223aef9ac8b /tests/validators
parent3aad955ea8db1592fad0012155eaa25b72e50dc5 (diff)
Fixed an email validation regression
Thanks Vincent Wagelaar for the report.
Diffstat (limited to 'tests/validators')
-rw-r--r--tests/validators/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/validators/tests.py b/tests/validators/tests.py
index ec3e2dc8c1..9be49d7726 100644
--- a/tests/validators/tests.py
+++ b/tests/validators/tests.py
@@ -46,6 +46,7 @@ TEST_DATA = (
(validate_email, 'example@-invalid.com', ValidationError),
(validate_email, 'example@inv-.alid-.com', ValidationError),
(validate_email, 'example@inv-.-alid.com', ValidationError),
+ (validate_email, 'test@example.com\n\n<script src="x.js">', ValidationError),
# Quoted-string format (CR not allowed)
(validate_email, '"\\\011"@here.com', None),
(validate_email, '"\\\012"@here.com', ValidationError),