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

Module kvform

source code

Classes
  KVBaseTest
  KVDictTest
  KVSeqTest
  KVExcTest
  GeneralTest
Functions
 
pyUnitTests() source code
Variables
  kvdict_cases = [('', {}, 0), ('college:harvey mudd\n', {'colle...
  kvseq_cases = [([], '', 0), ([(u'λx', u'x')], '\xce\xbbx:x\n',...
  kvexc_cases = [[('openid', 'use\nful')], [('open\nid', 'useful...
Variables Details

kvdict_cases

Value:
[('', {}, 0),
 ('college:harvey mudd\n', {'college': 'harvey mudd'}, 0),
 ('''city:claremont
state:CA
''',
  {'city': 'claremont', 'state': 'CA'},
  0),
 ('is_valid:true\ninvalidate_handle:{HMAC-SHA1:2398410938412093}\n', {\
...

kvseq_cases

Value:
[([], '', 0),
 ([(u'λx', u'x')], '\xce\xbbx:x\n', 0),
 ([('\xce\xbbx', 'x')], '\xce\xbbx:x\n', 0),
 ([('openid', 'useful'), ('a', 'b')], 'openid:useful\na:b\n', 0),
 ([(' openid', 'useful'), ('a', 'b')], ' openid:useful\na:b\n', 2),
 ([(' openid ', ' useful '), (' a ', ' b ')],
  ''' openid : useful 
 a : b 
...

kvexc_cases

Value:
[[('openid', 'use\nful')],
 [('open\nid', 'useful')],
 [('open\nid', 'use\nful')],
 [('open:id', 'useful')],
 [('foo', 'bar'), ('ba\n d', 'seed')],
 [('foo', 'bar'), ('bad:', 'seed')]]