Ticket #11291: django-11291r2.diff
File django-11291r2.diff, 818 bytes (added by , 15 years ago) |
---|
-
django/contrib/auth/tests/views.py
37 37 38 38 class PasswordResetTest(AuthViewsTestCase): 39 39 40 def setUp(self):41 self.old_LANGUAGES = settings.LANGUAGES42 self.old_LANGUAGE_CODE = settings.LANGUAGE_CODE43 settings.LANGUAGES = (('en', 'English'),)44 settings.LANGUAGE_CODE = 'en'45 46 def tearDown(self):47 settings.LANGUAGES = self.old_LANGUAGES48 settings.LANGUAGE_CODE = self.old_LANGUAGE_CODE49 50 40 def test_email_not_found(self): 51 41 "Error is raised if the provided email address isn't currently registered" 52 42 response = self.client.get('/password_reset/')