Skip to content

Commit

Permalink
[feature 145028639] Add test for redirection url.
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriaaoka committed May 24, 2017
1 parent 590ca1d commit 20ec6e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hc/accounts/tests/test_check_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def test_it_redirects_already_logged_in(self):
# Login with a bad token and check that it redirects
def test_redirects_bad_token(self):
response = self.client.post("/accounts/check_token/alice/bad-token/")
import ipdb; ipdb.set_trace()
self.assertEqual(response.status_code, 302)
#self.assertTrue( response.url.startswith('/accounts/login/') )
self.assertTrue(response.url.startswith('/accounts/login/'))

### Any other tests?

0 comments on commit 20ec6e5

Please sign in to comment.