diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-11-23 20:51:17 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-11-26 20:41:51 +0100 |
| commit | 384816fccb6dfc7fc40f8059811341ba3572d9ff (patch) | |
| tree | 2d2578f616a1f8aacd7265dc0757fbd9dfa64c67 /tests | |
| parent | 5725236c3ee4323203aa681cb54d1ff1d7f376df (diff) | |
Fixed #21448 -- Fixed test client logout with cookie-based sessions
Thanks Gunnar Scherf for the report and the suggested patch.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_client/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
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" |
