diff options
| author | Honza Král <honza.kral@gmail.com> | 2009-06-01 15:40:56 +0000 |
|---|---|---|
| committer | Honza Král <honza.kral@gmail.com> | 2009-06-01 15:40:56 +0000 |
| commit | 0467891c4142b31e297f68776af2db9e4a889d96 (patch) | |
| tree | cef204a43794668094659ae2c207021f3f871929 | |
| parent | a6a8ae6408216250a85087cc73647e34ad6a91ea (diff) | |
[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
| -rw-r--r-- | django/contrib/auth/tests/forms.py | 4 |
1 files 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. |
