def METHOD_NAME(self):
    response = self.client.post('{}?next=/next'.format(self.url), {
        'email': 'testuser@example.com',
        'password': 'test'
    })
    self.assertEqual(response.status_code, 302)
    self.assertEqual(response['location'], '/next')