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

Class TestCheckAuthResponse

source code

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

Nested Classes [hide private]

Inherited from TestIdRes: consumer_class

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
source code
 
_createAssoc(self) source code
 
test_goodResponse(self)
successful response to check_authentication
source code
 
test_missingAnswer(self)
check_authentication returns false when the server sends no answer
source code
 
test_badResponse(self)
check_authentication returns false when is_valid is false
source code
 
test_badResponseInvalidate(self)
Make sure that the handle is invalidated when is_valid is false
source code
 
test_invalidateMissing(self)
invalidate_handle with a handle that is not present
source code
 
test_invalidateMissing_noStore(self)
invalidate_handle with a handle that is not present
source code
 
test_invalidatePresent(self)
invalidate_handle with a handle that exists
source code

Inherited from TestIdRes: disableDiscoveryVerification, disableReturnToChecking

Inherited from unittest.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __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

Inherited from unittest.TestCase (private): _exc_info

Inherited from support.CatchLogs: failUnlessLogEmpty, failUnlessLogMatches, gotLogMessage

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

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

Overrides: support.CatchLogs.setUp

tearDown(self)

source code 

Hook method for deconstructing the test fixture after testing it.

Overrides: support.CatchLogs.tearDown

test_badResponseInvalidate(self)

source code 

Make sure that the handle is invalidated when is_valid is false

From "Verifying directly with the OpenID Provider":

   If the OP responds with "is_valid" set to "true", and
   "invalidate_handle" is present, the Relying Party SHOULD
   NOT send further authentication requests with that handle.

test_invalidatePresent(self)

source code 

invalidate_handle with a handle that exists

From "Verifying directly with the OpenID Provider":

   If the OP responds with "is_valid" set to "true", and
   "invalidate_handle" is present, the Relying Party SHOULD
   NOT send further authentication requests with that handle.