Author: Honza_Kral Date: 2009-06-01 10:40:56 -0500 (Mon, 01 Jun 2009) New Revision: 10874
Modified: django/branches/soc2009/model-validation/django/contrib/auth/tests/forms.py Log: [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. Modified: django/branches/soc2009/model-validation/django/contrib/auth/tests/forms.py =================================================================== --- django/branches/soc2009/model-validation/django/contrib/auth/tests/forms.py 2009-06-01 15:40:35 UTC (rev 10873) +++ django/branches/soc2009/model-validation/django/contrib/auth/tests/forms.py 2009-06-01 15:40:56 UTC (rev 10874) @@ -16,7 +16,7 @@ >>> 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 @@ >>> 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
