Package openid :: Package test :: Module test_negotiation :: Class TestOpenID2SessionNegotiation
[frames] | no frames]

Class TestOpenID2SessionNegotiation

source code

       object --+    
                |    
unittest.TestCase --+
                    |
       object --+   |
                |   |
support.CatchLogs --+
                    |
                   TestOpenID2SessionNegotiation

Test the session type negotiation behavior of an OpenID 2 consumer.

Nested Classes

Inherited from unittest.TestCase: failureException

Instance Methods
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
testBadResponse(self)
Test the case where the response to an associate request is a server error or is otherwise undecipherable.
source code
 
testEmptyAssocType(self)
Test the case where the association type (assoc_type) returned in an unsupported-type response is absent.
source code
 
testEmptySessionType(self)
Test the case where the session type (session_type) returned in an unsupported-type response is absent.
source code
 
testNotAllowed(self)
Test the case where an unsupported-type response specifies a preferred (assoc_type, session_type) combination that is not allowed by the consumer's SessionNegotiator.
source code
 
testUnsupportedWithRetry(self)
Test the case where an unsupported-type response triggers a retry to get an association with the new preferred type.
source code
 
testUnsupportedWithRetryAndFail(self)
Test the case where an unsupported-typ response triggers a retry, but the retry fails and None is returned instead.
source code
 
testValid(self)
Test the valid case, wherein an association is returned on the first attempt to get one.
source code

Inherited from unittest.TestCase: __call__, __init__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, tearDown

Inherited from support.CatchLogs: failUnlessLogEmpty, failUnlessLogMatches, gotLogMessage

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties

Inherited from object: __class__

Method Details

setUp(self)

source code 

Hook method for setting up the test fixture before exercising it.

Overrides: support.CatchLogs.setUp