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

Class TestCheckAuthResponse

source code

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

Nested Classes

Inherited from TestIdRes: consumer_class

Inherited from unittest.TestCase: failureException

Instance Methods
 
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
 
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__, __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

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

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.