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

Class TestCheckAuthResponse

source code

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

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