Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. response = TestCase.client.post('app/login', {credentials}, follow=True)
  2. TestCase.assertRedirects(response, 'app/graphs')
  3.  
  4. AssertionError: False is not true :
  5. Response didn't redirect as expected: Response code was 200 (expected 302).
  6.  
  7. TestCase.assertRedirects(response, 'app/graphs', status_code=200)
  8.  
  9. AssertionError: False is not true :
  10. Response didn't redirect as expected: Response code was 200 (expected 200).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement