def METHOD_NAME(self):
    """Test the post-login hook with a bad openid endpoint"""
    req, info = self._generate_req_info('bad_endpoint')
    with pytest.raises(HTTPUnauthorized) as exc:
        remember_me(None, req, info)
    assert str(exc.value) == (
        "Invalid OpenID provider. You can only use: https://id.stg.fedoraproject.org/openid/"
    )
    # The user should not exist
    assert models.User.get('lmacken') is None