Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- response = TestCase.client.post('app/login', {credentials}, follow=True)
- TestCase.assertRedirects(response, 'app/graphs')
- AssertionError: False is not true :
- Response didn't redirect as expected: Response code was 200 (expected 302).
- TestCase.assertRedirects(response, 'app/graphs', status_code=200)
- AssertionError: False is not true :
- Response didn't redirect as expected: Response code was 200 (expected 200).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement