Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1.     def test_index_handles_logged_in_user(self):
  2.         user = User(name='jj', email='test123@test.com', password='test12345')
  3.         user.save()
  4.         print(user.email, user.password)
  5.         c = Client()
  6.         response = c.post('/sign_in', {'email': 'test123@test.com', 'password': 'test12345'}, follow=True)
  7.         print(response.content)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement