From 384816fccb6dfc7fc40f8059811341ba3572d9ff Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 23 Nov 2013 20:51:17 +0100 Subject: Fixed #21448 -- Fixed test client logout with cookie-based sessions Thanks Gunnar Scherf for the report and the suggested patch. --- tests/test_client/tests.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test_client') diff --git a/tests/test_client/tests.py b/tests/test_client/tests.py index 14191306c4..d914a89043 100644 --- a/tests/test_client/tests.py +++ b/tests/test_client/tests.py @@ -368,6 +368,10 @@ class ClientTest(TestCase): response = self.client.get('/test_client/login_protected_view/') self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/login_protected_view/') + @override_settings(SESSION_ENGINE="django.contrib.sessions.backends.signed_cookies") + def test_logout_cookie_sessions(self): + self.test_logout() + def test_view_with_permissions(self): "Request a page that is protected with @permission_required" -- cgit v1.3