'Attempt to log in to the provider with setup parameters
Intentionally fail the login to force a redirect'

def _send_bad_redirection_login(self):

    user = UserFactory()
    factory = RequestFactory()
    post_params = {'email': user.email, 'password': 'password'}
    fake_url = 'fake    url'
    request = factory.post(reverse('openid-provider-login'), post_params)
    openid_setup = {'request': factory.request(), 'url': fake_url, 'post_params': {}}
    request.session = {'openid_setup': openid_setup}
    response = provider_login(request)
    return response
