Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored March 26, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django/contrib/auth/tests/forms.py
3  django/contrib/auth/tests/forms.py
@@ -9,6 +9,7 @@
9 9
 from django.test.utils import override_settings
10 10
 from django.utils.encoding import force_unicode
11 11
 from django.utils import translation
  12
+from django.utils.translation import ugettext as _
12 13
 
13 14
 
14 15
 class UserCreationFormTest(TestCase):
@@ -333,6 +334,6 @@ def test_unusable_password(self):
333 334
         form = PasswordResetForm(data)
334 335
         self.assertFalse(form.is_valid())
335 336
         self.assertEqual(form["email"].errors,
336  
-                         [u"The user account associated with this e-mail address cannot reset the password."])
  337
+                         [_(u"The user account associated with this e-mail address cannot reset the password.")])
337 338
 
338 339
 PasswordResetFormTest = override_settings(USE_TZ=False)(PasswordResetFormTest)

0 notes on commit 0fe9f3c

Please sign in to comment.
Something went wrong with that request. Please try again.