summaryrefslogtreecommitdiff
path: root/tests/validators
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-23 12:13:17 -0400
committerTim Graham <timograham@gmail.com>2013-10-23 12:22:14 -0400
commit4cfbde71a33973cb8c8da406b2523dfc742358e7 (patch)
treebe2a362fe0b96634cd0b8a8aebfe30b085b4b36f /tests/validators
parentefb05978b36ef6eeb02f47b7c58b138d089d581a (diff)
Fixed #12027 -- Fixed EmailValidator to reject a trailing dot.
Thanks Klas H for the report and claudep for the patch.
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 367bd4380d..e3f418ee73 100644
--- a/tests/validators/tests.py
+++ b/tests/validators/tests.py
@@ -56,6 +56,7 @@ TEST_DATA = (
# Quoted-string format (CR not allowed)
(validate_email, '"\\\011"@here.com', None),
(validate_email, '"\\\012"@here.com', ValidationError),
+ (validate_email, 'trailingdot@shouldfail.com.', ValidationError),
(validate_slug, 'slug-ok', None),
(validate_slug, 'longer-slug-still-ok', None),