Skip to content

Commit

Permalink
updated login tests to support django 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarcos committed Mar 15, 2017
1 parent 4ef8bcf commit 1d8dd5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_cms.py
Expand Up @@ -27,7 +27,7 @@ def test_login_success_redirect_no_next(self, admin_user):
})

assert response.status_code == 302
assert response.url == '/'
assert response.url in ('/', 'http://testserver/')

def test_login_success_redirect_next(self, admin_user):
"""
Expand All @@ -44,7 +44,7 @@ def test_login_success_redirect_next(self, admin_user):
})

assert response.status_code == 302
assert response.url == '/articles/'
assert response.url in ('/articles/', 'http://testserver/articles/')

def test_login_success_redirect_next_other_host(self, admin_user):
"""
Expand All @@ -61,7 +61,7 @@ def test_login_success_redirect_next_other_host(self, admin_user):
})

assert response.status_code == 302
assert response.url == '/'
assert response.url in ('/', 'http://testserver/')

def test_login_success(self, admin_user):
"""
Expand Down

0 comments on commit 1d8dd5d

Please sign in to comment.