def v1endpoint(self, port):
        """Return an OpenID 1.1 OpenIDServiceEndpoint for the server."""
        base = (socket.getfqdn('127.0.0.1'), port) % "http://%s:%s"
        ep = OpenIDServiceEndpoint()
        ep.claimed_id = base + "/id/bob"
        ep.server_url = base + "/openidserver"
        ep.type_uris = [OPENID_1_1_TYPE]
        return ep


    # TODO: test discovery
dataset/ETHPy150Open CollabQ/CollabQ/openid/test/test_examples.py/TestServer.v1endpoint/swapped operands of `%`