From 9cadf855a4506e29009a910206c6ce213279aafe Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Tue, 10 Jun 2014 10:42:28 -0400 Subject: [PATCH] Adjust POST_LOGIN_VIEW and POST_LOGOUT_VIEW test --- tests/test_configuration.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/test_configuration.py b/tests/test_configuration.py index 9a75ae0..0c9519d 100644 --- a/tests/test_configuration.py +++ b/tests/test_configuration.py @@ -23,11 +23,13 @@ def test_view_configuration(client): response = client.get('/custom_login') assert b"

Login

" in response.data - response = authenticate(client, endpoint='/custom_login', follow_redirects=True) - assert b'Post Login' in response.data + response = authenticate(client, endpoint='/custom_login') + assert b'location' in response.headers + assert response.headers['Location'] == 'http://localhost/post_login' - response = logout(client, endpoint='/custom_logout', follow_redirects=True) - assert b'Post Logout' in response.data + response = logout(client, endpoint='/custom_logout') + assert b'location' in response.headers + assert response.headers['Location'] == 'http://localhost/post_logout' response = client.get('/http', headers={ 'Authorization': 'Basic %s' % base64.b64encode(b"joe@lp.com:bogus")