mirror of
https://github.com/django/django.git
synced 2025-07-07 19:29:12 +00:00
[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
This commit is contained in:
parent
a6a8ae6408
commit
0467891c41
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user