'Tests that if we provide mismatched passwords, user is not marked as active.'

def test_password_reset_fail(self):

    self.assertFalse(self.user.is_active)
    url = reverse('password_reset_confirm', kwargs={'uidb36': self.uidb36, 'token': self.token})
    request_params = {'new_password1': 'password1', 'new_password2': 'password2'}
    confirm_request = self.request_factory.post(url, data=request_params)
    resp = password_reset_confirm_wrapper(confirm_request, self.uidb36, self.token)
    self.assertEqual(resp.status_code, 200)
    self.assertFalse(User.objects.get(pk=self.user.pk).is_active)
