Ticket #8752: auth_tests.diff
File auth_tests.diff, 1.5 KB (added by , 16 years ago) |
---|
-
django/contrib/auth/tests/views.py
11 11 fixtures = ['authtestdata.json'] 12 12 urls = 'django.contrib.auth.urls' 13 13 14 def setUp(self): 15 self.old_LANGUAGES = settings.LANGUAGES 16 self.old_LANGUAGE_CODE = settings.LANGUAGE_CODE 17 settings.LANGUAGES = (('en', 'English'),) 18 settings.LANGUAGE_CODE = 'en' 19 20 def tearDown(self): 21 settings.LANGUAGES = self.old_LANGUAGES 22 settings.LANGUAGE_CODE = self.old_LANGUAGE_CODE 23 14 24 def test_email_not_found(self): 15 25 "Error is raised if the provided email address isn't currently registered" 16 26 response = self.client.get('/password_reset/') … … 95 105 urls = 'django.contrib.auth.urls' 96 106 97 107 def setUp(self): 108 self.old_LANGUAGES = settings.LANGUAGES 109 self.old_LANGUAGE_CODE = settings.LANGUAGE_CODE 110 settings.LANGUAGES = (('en', 'English'),) 111 settings.LANGUAGE_CODE = 'en' 98 112 self.old_TEMPLATE_DIRS = settings.TEMPLATE_DIRS 99 113 settings.TEMPLATE_DIRS = ( 100 114 os.path.join( … … 104 118 ,) 105 119 106 120 def tearDown(self): 121 settings.LANGUAGES = self.old_LANGUAGES 122 settings.LANGUAGE_CODE = self.old_LANGUAGE_CODE 107 123 settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS 108 124 109 125 def login(self, password='password'):