Package openid :: Package test :: Module test_openidyadis
[frames] | no frames]

Module test_openidyadis

source code

Classes
  OpenIDYadisTest
Functions
 
mkXRDS(services) source code
 
mkService(uris=None, type_uris=None, local_id=None, dent=' ') source code
 
subsets(l)
Generate all non-empty sublists of a list
source code
 
pyUnitTests() source code
Variables
  XRDS_BOILERPLATE = '<?xml version="1.0" encoding="UTF-8"?>\n<x...
  server_url_options = [[], ['http://server.url/'], ['https://se...
  ext_types = ['http://janrain.com/extension/blah', 'http://open...
  type_uri_options = [['http://openid.net/signon/1.0'], ['http:/...
  local_id_options = [None, 'http://vanity.domain/', 'https://so...
  data = [([], ['http://openid.net/signon/1.0'], None), ([], ['h...
  exts = ['http://openid.net/sreg/1.0', 'http://janrain.com/exte...
  local_id = 'https://somewhere/yadis/'
  ts = ['http://openid.net/signon/1.1', 'http://openid.net/signo...
  type_uris = ['http://openid.net/sreg/1.0', 'http://janrain.com...
  uris = ['https://server.url/', 'http://server.url/', 'http://e...
Variables Details

XRDS_BOILERPLATE

Value:
'''<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS xmlns:xrds="xri://$xrds"
           xmlns="xri://$xrd*($v*2.0)"
           xmlns:openid="http://openid.net/xmlns/1.0">
    <XRD>
%s    </XRD>
</xrds:XRDS>
'''

server_url_options

Value:
[[],
 ['http://server.url/'],
 ['https://server.url/'],
 ['https://server.url/', 'http://server.url/'],
 ['https://server.url/',
  'http://server.url/',
  'http://example.server.url/']]

ext_types

Value:
['http://janrain.com/extension/blah', 'http://openid.net/sreg/1.0']

type_uri_options

Value:
[['http://openid.net/signon/1.0'],
 ['http://janrain.com/extension/blah', 'http://openid.net/signon/1.0']\
,
 ['http://openid.net/sreg/1.0', 'http://openid.net/signon/1.0'],
 ['http://openid.net/sreg/1.0',
  'http://janrain.com/extension/blah',
  'http://openid.net/signon/1.0'],
 ['http://openid.net/signon/1.1'],
...

local_id_options

Value:
[None, 'http://vanity.domain/', 'https://somewhere/yadis/']

data

Value:
[([], ['http://openid.net/signon/1.0'], None),
 ([], ['http://openid.net/signon/1.0'], 'http://vanity.domain/'),
 ([], ['http://openid.net/signon/1.0'], 'https://somewhere/yadis/'),
 ([],
  ['http://janrain.com/extension/blah',
   'http://openid.net/signon/1.0'],
  None),
 ([], ['http://janrain.com/extension/blah', 'http://openid.net/signon/\
...

exts

Value:
['http://openid.net/sreg/1.0', 'http://janrain.com/extension/blah']

ts

Value:
['http://openid.net/signon/1.1', 'http://openid.net/signon/1.0']

type_uris

Value:
['http://openid.net/sreg/1.0',
 'http://janrain.com/extension/blah',
 'http://openid.net/signon/1.1',
 'http://openid.net/signon/1.0']

uris

Value:
['https://server.url/',
 'http://server.url/',
 'http://example.server.url/']