Ticket #11291: django-11291r2.diff

File django-11291r2.diff, 818 bytes (added by Justin Lilly, 15 years ago)

Doh! Missed the teardown method.

  • django/contrib/auth/tests/views.py

     
    3737
    3838class PasswordResetTest(AuthViewsTestCase):
    3939
    40     def setUp(self):
    41         self.old_LANGUAGES = settings.LANGUAGES
    42         self.old_LANGUAGE_CODE = settings.LANGUAGE_CODE
    43         settings.LANGUAGES = (('en', 'English'),)
    44         settings.LANGUAGE_CODE = 'en'
    45 
    46     def tearDown(self):
    47         settings.LANGUAGES = self.old_LANGUAGES
    48         settings.LANGUAGE_CODE = self.old_LANGUAGE_CODE
    49 
    5040    def test_email_not_found(self):
    5141        "Error is raised if the provided email address isn't currently registered"
    5242        response = self.client.get('/password_reset/')
Back to Top