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

Class CheckNonceVerifyTest

source code

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

Nested Classes [hide private]

Inherited from TestIdRes: consumer_class

Inherited from unittest.case.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
 
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.case.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, skipTest

Inherited from unittest.case.TestCase (private): _addSkip, _baseAssertEqual, _deprecate, _formatMessage, _getAssertEqualityFunc, _truncateMessage

Inherited from support.CatchLogs: failUnlessLogEmpty, failUnlessLogMatches, gotLogMessage

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

Class Methods [hide private]

Inherited from unittest.case.TestCase: setUpClass, tearDownClass

Class Variables [hide private]

Inherited from unittest.case.TestCase: longMessage, maxDiff

Inherited from unittest.case.TestCase (private): _classSetupFailed, _diffThreshold

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_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.