From 0467891c4142b31e297f68776af2db9e4a889d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Mon, 1 Jun 2009 15:40:56 +0000 Subject: [PATCH] [soc2009/model-validation] Updated tests for auth.forms. The errors are still duplicated (one from model, one from form), we will remove that duplication later on. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@10874 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/auth/tests/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/auth/tests/forms.py b/django/contrib/auth/tests/forms.py index 482979c59e..38ee70b169 100644 --- a/django/contrib/auth/tests/forms.py +++ b/django/contrib/auth/tests/forms.py @@ -16,7 +16,7 @@ FORM_TESTS = """ >>> form.is_valid() False >>> form["username"].errors -[u'A user with that username already exists.'] +[u'A user with that username already exists.', u'This field cannot be blank.'] # The username contains invalid data. @@ -29,7 +29,7 @@ False >>> form.is_valid() False >>> form["username"].errors -[u'This value must contain only letters, numbers and underscores.'] +[u'This value must contain only letters, numbers and underscores.', u'This field cannot be blank.'] # The verification password is incorrect.