diff options
| author | Kaleb Elwert <belak@coded.io> | 2015-10-01 12:52:18 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-10-02 12:29:54 -0400 |
| commit | adcf823359d7402fc1f57a2e005cea52905d897d (patch) | |
| tree | 80ed02d5c32766857b376ce42c23cc6aceeecaae /tests | |
| parent | 37a5a363215d7c0360ff0a8f57856d373e8c1629 (diff) | |
Fixed #25490 -- Made the logout() view send "no-cache" headers.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/auth_tests/test_views.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py index 19a47a2697..d7a64608b8 100644 --- a/tests/auth_tests/test_views.py +++ b/tests/auth_tests/test_views.py @@ -770,6 +770,14 @@ class LogoutTest(AuthViewsTestCase): response = self.client.get('/logout/') self.assertIn('site', response.context) + def test_logout_doesnt_cache(self): + """ + The logout() view should send "no-cache" headers for reasons described + in #25490. + """ + response = self.client.get('/logout/') + self.assertIn('no-store', response['Cache-Control']) + def test_logout_with_overridden_redirect_url(self): # Bug 11223 self.login() |
