Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_index_handles_logged_in_user(self):
- user = User(name='jj', email='test123@test.com', password='test12345')
- user.save()
- print(user.email, user.password)
- c = Client()
- response = c.post('/sign_in', {'email': 'test123@test.com', 'password': 'test12345'}, follow=True)
- print(response.content)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement