Commit c177e8d9 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

astakos: Update tests

fix pithos:// redirect params extraction
parent 7cc443ce
......@@ -1339,7 +1339,8 @@ class TestWebloginRedirect(TestCase):
# scheme preserved
self.assertTrue(url.startswith('pithos://localhost/'))
# redirect contains token param
params = urlparse.urlparse(url, 'https').query
params = urlparse.urlparse(url.replace('pithos', 'https'),
scheme='https').query
params = urlparse.parse_qs(params)
self.assertEqual(params['token'][0],
AstakosUser.objects.get().auth_token)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment