diff options
author | NavaL <mnandri@thoughtworks.com> | 2016-02-25 09:16:28 +0100 |
---|---|---|
committer | NavaL <mnandri@thoughtworks.com> | 2016-02-25 09:43:02 +0100 |
commit | 1e1668f98afd04e2da7c779a825e6d28e777fec7 (patch) | |
tree | 3083f6e70f1e3ae004326ff2ece87a768794c40a /service/test/integration | |
parent | 9573bdca55ddc5488066d3af525e41ed1d872ea6 (diff) |
changed logout to post
Issue #612
Diffstat (limited to 'service/test/integration')
-rw-r--r-- | service/test/integration/test_logout.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/service/test/integration/test_logout.py b/service/test/integration/test_logout.py index 52f7e34f..da414126 100644 --- a/service/test/integration/test_logout.py +++ b/service/test/integration/test_logout.py @@ -13,10 +13,11 @@ # # You should have received a copy of the GNU Affero General Public License # along with Pixelated. If not, see <http://www.gnu.org/licenses/>. +import json + from mockito import verify from twisted.internet import defer -from test.support.integration import load_mail_from_file from test.support.integration.multi_user_client import MultiUserClient from test.support.integration.soledad_test_base import SoledadTestBase @@ -34,7 +35,8 @@ class MultiUserLogoutTest(MultiUserClient, SoledadTestBase): yield self.wait_for_session_user_id_to_finish() - response, request = self.get("/logout", as_json=False, from_request=login_request) + response, request = self.post("/logout", json.dumps({'csrftoken': [login_request.getCookie('XSRF-TOKEN')]}), + from_request=login_request, as_json=False) yield response self.assertEqual(302, request.responseCode) # redirected |