Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make auth test pass even when LANGUAGE_CODE is not 'en'. Refs #17980.…

… Thanks wassup for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0fe9f3ce275e93d68b17b9e16b77ef1850665076 1 parent 00ec03f
Claude Paroz claudep authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/contrib/auth/tests/forms.py
3  django/contrib/auth/tests/forms.py
View
@@ -9,6 +9,7 @@
from django.test.utils import override_settings
from django.utils.encoding import force_unicode
from django.utils import translation
+from django.utils.translation import ugettext as _
class UserCreationFormTest(TestCase):
@@ -333,6 +334,6 @@ def test_unusable_password(self):
form = PasswordResetForm(data)
self.assertFalse(form.is_valid())
self.assertEqual(form["email"].errors,
- [u"The user account associated with this e-mail address cannot reset the password."])
+ [_(u"The user account associated with this e-mail address cannot reset the password.")])
PasswordResetFormTest = override_settings(USE_TZ=False)(PasswordResetFormTest)
Please sign in to comment.
Something went wrong with that request. Please try again.