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

Class TestCheckAuthResponse

source code

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

Instance Methods [hide private]
 
setUp(self) source code
 
tearDown(self) 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 support.CatchLogs: failUnlessLogEmpty, failUnlessLogMatches, gotLogMessage

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

Class Variables [hide private]

Inherited from TestIdRes: consumer_class

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 
Overrides: support.CatchLogs.setUp

tearDown(self)

source code 
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.