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

Class CheckNonceVerifyTest

source code

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

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_openid1Success(self)
use consumer-generated nonce
source code
 
test_openid1Missing(self)
use consumer-generated nonce
source code
 
test_consumerNonceOpenID2(self)
OpenID 2 does not use consumer-generated nonce
source code
 
test_serverNonce(self)
use server-generated nonce
source code
 
test_serverNonceOpenID1(self)
OpenID 1 does not use server-generated nonce
source code
 
test_badNonce(self)
remove the nonce from the store
source code
 
test_successWithNoStore(self)
When there is no store, checking the nonce succeeds
source code
 
test_tamperedNonce(self)
Malformed nonce
source code
 
test_missingNonce(self)
no nonce parameter on the return_to
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_badNonce(self)

source code 

remove the nonce from the store

From "Checking the Nonce":

   When the Relying Party checks the signature on an assertion, the

   Relying Party SHOULD ensure that an assertion has not yet
   been accepted with the same value for "openid.response_nonce"
   from the same OP Endpoint URL.