Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_login_success(self):
- user = User.objects.create_user('testuser', 'test@test.com', 'test123')
- client = Client()
- response = self.client.post(dict(username='testuers', password='test123')
- self.assertRedirects(response. '/')
Add Comment
Please, Sign In to add comment