Ticket #14252: django-flatpages-tests.diff
File django-flatpages-tests.diff, 2.1 KB (added by , 14 years ago) |
---|
-
django/contrib/flatpages/tests/csrf.py
23 23 'templates' 24 24 ), 25 25 ) 26 self.old_LOGIN_URL = settings.LOGIN_URL 27 settings.LOGIN_URL = '/accounts/login/' 26 28 27 29 def tearDown(self): 28 30 settings.MIDDLEWARE_CLASSES = self.old_MIDDLEWARE_CLASSES 29 31 settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS 32 settings.LOGIN_URL = self.old_LOGIN_URL 30 33 31 34 def test_view_flatpage(self): 32 35 "A flatpage can be served through a view, even when the middleware is in use" -
django/contrib/flatpages/tests/middleware.py
19 19 'templates' 20 20 ), 21 21 ) 22 self.old_LOGIN_URL = settings.LOGIN_URL 23 settings.LOGIN_URL = '/accounts/login/' 22 24 23 25 def tearDown(self): 24 26 settings.MIDDLEWARE_CLASSES = self.old_MIDDLEWARE_CLASSES 25 27 settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS 28 settings.LOGIN_URL = self.old_LOGIN_URL 26 29 27 30 def test_view_flatpage(self): 28 31 "A flatpage can be served through a view, even when the middleware is in use" -
django/contrib/flatpages/tests/views.py
20 20 'templates' 21 21 ), 22 22 ) 23 self.old_LOGIN_URL = settings.LOGIN_URL 24 settings.LOGIN_URL = '/accounts/login/' 23 25 24 26 def tearDown(self): 25 27 settings.MIDDLEWARE_CLASSES = self.old_MIDDLEWARE_CLASSES 26 28 settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS 29 settings.LOGIN_URL = self.old_LOGIN_URL 27 30 28 31 def test_view_flatpage(self): 29 32 "A flatpage can be served through a view"