tests fixed

This commit is contained in:
Rbukharov 2015-07-14 10:27:21 +03:00
parent 481ed642c8
commit 0b9fb5c09a
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ def create_cas_logout_url(cas_url, cas_route, service=None):
... '/cas/logout',
... 'http://localhost:5000',
... )
'http://sso.pdx.edu/cas/logout?url=http%3A%2F%2Flocalhost%3A5000'
'http://sso.pdx.edu/cas/logout?service=http%3A%2F%2Flocalhost%3A5000'
"""
return create_url(
cas_url,

View file

@ -102,7 +102,7 @@ class test_routing(unittest.TestCase):
self.assertEqual(response.status_code, 302)
self.assertEqual(
response.headers['Location'],
'http://cas.server.com/cas/logout?service=http://localhost:5000')
'http://cas.server.com/cas/logout?service=http%3A%2F%2Flocalhost%3A5000')
@mock.patch.object(routing, 'urlopen',
return_value=io.BytesIO(b'yes\nbob\n'))