From 4cfbde71a33973cb8c8da406b2523dfc742358e7 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 23 Oct 2013 12:13:17 -0400 Subject: Fixed #12027 -- Fixed EmailValidator to reject a trailing dot. Thanks Klas H for the report and claudep for the patch. --- tests/validators/tests.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/validators') 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), -- cgit v1.3