48 """Verifica que el login funciona correctamente con credenciales válidas"""
50 'email':
'existing@example.com',
51 'password':
'existingpassword123'
54 response = self.
client.post(
56 data=json.dumps(login_data),
57 content_type=
'application/json'
60 self.assertEqual(response.status_code, status.HTTP_200_OK)
61 self.assertIn(
'access', response.data)
62 self.assertIn(
'refresh', response.data)
63 self.assertEqual(response.data[
'email'],
'existing@example.com')