def METHOD_NAME(self, openid_endpoint):
    """Generate the request and info to be handed to remember_me() for these tests."""
    req = testing.DummyRequest(params={'openid.op_endpoint': openid_endpoint})
    req.db = self.db
    req.session['came_from'] = '/'
    info = {
        'identity_url': 'http://lmacken.id.fedoraproject.org',
        'groups': ['releng'],
        'sreg': {'email': 'lmacken@fp.o', 'nickname': 'lmacken'},
    }
    req.registry.settings = self.app_settings
    # Ensure the user doesn't exist yet
    assert models.User.get('lmacken') is None
    assert models.Group.get('releng') is None
    return req, info