From e46c8f615f867d09ce76ee269b0ba81445ad320b Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 4 Mar 2015 17:49:40 -0500 Subject: Add test for multi-SP logout Create an additional SP, log into one, fetch the other and the client is now logged into both. Log out of the first one and the client is logged out of both. https://fedorahosted.org/ipsilon/ticket/58 Signed-off-by: Rob Crittenden Reviewed-by: Nathan Kinder --- tests/helpers/http.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/helpers') diff --git a/tests/helpers/http.py b/tests/helpers/http.py index 07b58b3..cf59853 100755 --- a/tests/helpers/http.py +++ b/tests/helpers/http.py @@ -180,7 +180,7 @@ class HttpSessions(object): return [method, self.new_url(referer, action_url), {'headers': headers, 'data': payload}] - def fetch_page(self, idp, target_url): + def fetch_page(self, idp, target_url, follow_redirect=True): url = target_url action = 'get' args = {} @@ -188,6 +188,8 @@ class HttpSessions(object): while True: r = self.access(action, url, **args) # pylint: disable=star-args if r.status_code == 303: + if not follow_redirect: + return PageTree(r) url = r.headers['location'] action = 'get' args = {} -- cgit