diff options
| author | hui shang <shangdahao@gmail.com> | 2017-08-24 21:11:16 +0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-08-24 09:11:34 -0400 |
| commit | 58aaf13e759cf60f8eaab42f650921923fde6502 (patch) | |
| tree | a343e491a118c9c28f17419e0d3cff95461fbcef /tests/auth_tests | |
| parent | 0d21bdd3805f5d3a37a02062a170cabe377aa8fe (diff) | |
[1.11.x] Fixed #28513 -- Added POST request support to LogoutView.
Backport of c0f4c60edd429f5ef57241cfabd159d13e26e5ac from master
Diffstat (limited to 'tests/auth_tests')
| -rw-r--r-- | tests/auth_tests/test_views.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py index 25b779f709..e2424a2b71 100644 --- a/tests/auth_tests/test_views.py +++ b/tests/auth_tests/test_views.py @@ -919,6 +919,12 @@ class LogoutTest(AuthViewsTestCase): self.assertContains(response, 'Logged out') self.confirm_logged_out() + def test_logout_with_post(self): + self.login() + response = self.client.post('/logout/') + self.assertContains(response, 'Logged out') + self.confirm_logged_out() + def test_14377(self): # Bug 14377 self.login() |
