Package openid :: Package test :: Module test_association_response :: Class TestOpenID1AssociationResponseSessionType
[hide private]
[frames] | no frames]

Class TestOpenID1AssociationResponseSessionType

source code

test_consumer.CatchLogs --+    
                          |    
      unittest.TestCase --+    
                          |    
              BaseAssocTest --+
                              |
                             TestOpenID1AssociationResponseSessionType

Instance Methods [hide private]
 
mkTest(expected_session_type, session_type_value)
Return a test method that will check what session type will be used if the OpenID 1 response to an associate call sets the 'session_type' field to `session_type_value`
source code
 
_doTest(self, expected_session_type, session_type_value) source code
 
test_explicitNoEncryption(self) source code

Inherited from BaseAssocTest: failUnlessProtocolError, setUp

Class Variables [hide private]
  test_none = mkTest(session_type_value= None, expected_session_...
  test_empty = mkTest(session_type_value= '', expected_session_t...
  test_dhSHA1 = mkTest(session_type_value= 'DH-SHA1', expected_s...
  test_dhSHA256 = mkTest(session_type_value= 'DH-SHA256', expect...
Class Variable Details [hide private]

test_none

Value:
mkTest(session_type_value= None, expected_session_type= 'no-encryption\
',)

test_empty

Value:
mkTest(session_type_value= '', expected_session_type= 'no-encryption',\
)

test_dhSHA1

Value:
mkTest(session_type_value= 'DH-SHA1', expected_session_type= 'DH-SHA1'\
,)

test_dhSHA256

Value:
mkTest(session_type_value= 'DH-SHA256', expected_session_type= 'DH-SHA\
256',)