Commit 97a35fed authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

astakos: Update tests

parent 9c9342e7
......@@ -1339,12 +1339,13 @@ class TestWebloginRedirect(TestCase):
# scheme preserved
self.assertTrue(url.startswith('pithos://localhost/'))
# redirect contains token param
params = urlparse.urlparse(urlparse.urlparse(url).path, 'https').query
params = urlparse.urlparse(url, 'https').query
params = urlparse.parse_qs(params)
self.assertEqual(params['token'][0],
AstakosUser.objects.get().auth_token)
# does not contain uuid
self.assertFalse('uuid' in params)
# reverted for 0.14.2 to support old pithos desktop clients
#self.assertFalse('uuid' in params)
# invalid cases
r = self.client.get(invalid_scheme, follow=True)
......
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