~gary/python-openid/python-openid-2.2.1-patched

« back to all changes in this revision

Viewing changes to openid/test/test_examples.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2007-12-10 10:29:01 UTC
  • mfrom: (2.1.2 pyopenid-2.1)
  • Revision ID: launchpad@pqm.canonical.com-20071210102901-f5mk3xr5ggx0vtwh
[rs=jamesh] Upgrade to python-openid-2.1 for better support of final OpenID 2.0 standard

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
"Test some examples."
2
2
 
 
3
import socket
3
4
import os.path, unittest, sys, time
4
5
from cStringIO import StringIO
5
6
 
91
92
 
92
93
    def v1endpoint(self, port):
93
94
        """Return an OpenID 1.1 OpenIDServiceEndpoint for the server."""
94
 
        base = "http://localhost:%s" % (port,)
 
95
        base = "http://%s:%s" % (socket.getfqdn('127.0.0.1'), port)
95
96
        ep = OpenIDServiceEndpoint()
96
97
        ep.claimed_id = base + "/id/bob"
97
98
        ep.server_url = base + "/openidserver"