summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_views.py
diff options
context:
space:
mode:
authorhui shang <shangdahao@gmail.com>2017-08-24 21:11:16 +0800
committerTim Graham <timograham@gmail.com>2017-08-24 09:11:16 -0400
commitc0f4c60edd429f5ef57241cfabd159d13e26e5ac (patch)
tree484eaaf788dd9cbda8c37cbdf59a95ca3d6c87f2 /tests/auth_tests/test_views.py
parentda0fb5b1ec89a747459ab64482f3202cb452c068 (diff)
Fixed #28513 -- Added POST request support to LogoutView.
Diffstat (limited to 'tests/auth_tests/test_views.py')
-rw-r--r--tests/auth_tests/test_views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py
index 354eea7899..4e704cb76a 100644
--- a/tests/auth_tests/test_views.py
+++ b/tests/auth_tests/test_views.py
@@ -922,6 +922,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()