Ticket #10747: 10747v3.diff
File 10747v3.diff, 1.4 KB (added by , 16 years ago) |
---|
-
django/contrib/auth/tests/views.py
189 189 fixtures = ['authtestdata.json'] 190 190 urls = 'django.contrib.auth.tests.urls' 191 191 192 def setUp(self): 193 self.old_TEMPLATE_DIRS = settings.TEMPLATE_DIRS 194 settings.TEMPLATE_DIRS = ( 195 os.path.join( 196 os.path.dirname(__file__), 197 'templates' 198 ) 199 ,) 200 201 def tearDown(self): 202 settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS 203 192 204 def login(self, password='password'): 193 205 response = self.client.post('/login/', { 194 206 'username': 'testclient', … … 232 244 response = self.client.get('/logout/custom_query/?follow=/somewhere/') 233 245 self.assertEqual(response.status_code, 302) 234 246 self.assert_(response['Location'].endswith('/somewhere/')) 235 self.confirm_logged_out() 236 No newline at end of file 247 self.confirm_logged_out() -
django/contrib/auth/tests/templates/registration/logged_out.html
1 Logged out