Package openid :: Package test :: Module test_consumer :: Class IdResCheckForFieldsTest
[hide private]
[frames] | no frames]

Class IdResCheckForFieldsTest

source code

unittest.TestCase --+    
                    |    
       object --+   |    
                |   |    
support.CatchLogs --+    
                    |    
            TestIdRes --+
                        |
                       IdResCheckForFieldsTest

Instance Methods [hide private]
 
setUp(self) source code
 
mkSuccessTest(openid_args, signed_list) source code
 
mkMissingFieldTest(openid_args) source code
 
mkMissingSignedTest(openid_args) source code

Inherited from TestIdRes: disableDiscoveryVerification, disableReturnToChecking

Inherited from support.CatchLogs: failUnlessLogEmpty, failUnlessLogMatches, gotLogMessage, tearDown

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  test_openid1Success = mkSuccessTest({'return_to': 'return', 'a...
  test_openid2Success = mkSuccessTest({'ns': OPENID2_NS, 'return...
  test_openid2Success_identifiers = mkSuccessTest({'ns': OPENID2...
  test_openid1Missing_returnToSig = mkMissingSignedTest({'return...
  test_openid1Missing_identitySig = mkMissingSignedTest({'return...
  test_openid2Missing_opEndpointSig = mkMissingSignedTest({'ns':...
  test_openid1MissingReturnTo = mkMissingFieldTest({'assoc_handl...
  test_openid1MissingAssocHandle = mkMissingFieldTest({'return_t...

Inherited from TestIdRes: consumer_class

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 
Overrides: support.CatchLogs.setUp

Class Variable Details [hide private]

test_openid1Success

Value:
mkSuccessTest({'return_to': 'return', 'assoc_handle': 'assoc handle', \
'sig': 'a signature', 'identity': 'someone',}, ['return_to', 'identity\
'])

test_openid2Success

Value:
mkSuccessTest({'ns': OPENID2_NS, 'return_to': 'return', 'assoc_handle'\
: 'assoc handle', 'sig': 'a signature', 'op_endpoint': 'my favourite s\
erver', 'response_nonce': 'use only once',}, ['return_to', 'response_n\
once', 'assoc_handle', 'op_endpoint'])

test_openid2Success_identifiers

Value:
mkSuccessTest({'ns': OPENID2_NS, 'return_to': 'return', 'assoc_handle'\
: 'assoc handle', 'sig': 'a signature', 'claimed_id': 'i claim to be m\
e', 'identity': 'my server knows me as me', 'op_endpoint': 'my favouri\
te server', 'response_nonce': 'use only once',}, ['return_to', 'respon\
se_nonce', 'identity', 'claimed_id', 'assoc_handle', 'op_endpoint'])

test_openid1Missing_returnToSig

Value:
mkMissingSignedTest({'return_to': 'return', 'assoc_handle': 'assoc han\
dle', 'sig': 'a signature', 'identity': 'someone', 'signed': 'identity\
',})

test_openid1Missing_identitySig

Value:
mkMissingSignedTest({'return_to': 'return', 'assoc_handle': 'assoc han\
dle', 'sig': 'a signature', 'identity': 'someone', 'signed': 'return_t\
o'})

test_openid2Missing_opEndpointSig

Value:
mkMissingSignedTest({'ns': OPENID2_NS, 'return_to': 'return', 'assoc_h\
andle': 'assoc handle', 'sig': 'a signature', 'identity': 'someone', '\
op_endpoint': 'the endpoint', 'signed': 'return_to,identity,assoc_hand\
le'})

test_openid1MissingReturnTo

Value:
mkMissingFieldTest({'assoc_handle': 'assoc handle', 'sig': 'a signatur\
e', 'identity': 'someone',})

test_openid1MissingAssocHandle

Value:
mkMissingFieldTest({'return_to': 'return', 'sig': 'a signature', 'iden\
tity': 'someone',})