summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-11-23 20:51:17 +0100
committerClaude Paroz <claude@2xlibre.net>2013-11-26 20:42:54 +0100
commit655b8bb10b3c00d6c96e357d085c20b397a2ffa0 (patch)
tree85c38474cce6ef968573eca6bcef3e56a5f4ac44 /tests
parent6cd5c67b694b3469817e38d02f79ddef7c2a7132 (diff)
[1.6.x] Fixed #21448 -- Fixed test client logout with cookie-based sessions
Thanks Gunnar Scherf for the report and the suggested patch. Backport of 384816fcc from master.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_client/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_client/tests.py b/tests/test_client/tests.py
index 0f3cba7e88..ccd3b56d2e 100644
--- a/tests/test_client/tests.py
+++ b/tests/test_client/tests.py
@@ -356,6 +356,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"