Package openid :: Package test :: Module test_server :: Class TestCheckID
[hide private]
[frames] | no frames]

Class TestCheckID

source code

            object --+    
                     |    
unittest.case.TestCase --+
                         |
                        TestCheckID

Nested Classes [hide private]

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
 
test_trustRootInvalid(self) source code
 
test_trustRootValid(self) source code
 
test_malformedTrustRoot(self) source code
 
test_trustRootValidNoReturnTo(self) source code
 
test_returnToVerified_callsVerify(self)
Make sure that verifyReturnTo is calling the trustroot function verifyReturnTo
source code
 
_expectAnswer(self, answer, identity=None, claimed_id=None) source code
 
test_answerAllow(self)
Check the fields specified by "Positive Assertions"
source code
 
test_answerAllowDelegatedIdentity(self) source code
 
test_answerAllowDelegatedIdentity2(self) source code
 
test_answerAllowWithoutIdentityReally(self) source code
 
test_answerAllowAnonymousFail(self) source code
 
test_answerAllowWithIdentity(self) source code
 
test_answerAllowWithDelegatedIdentityOpenID2(self)
Answer an IDENTIFIER_SELECT case with a delegated identifier.
source code
 
test_answerAllowWithDelegatedIdentityOpenID1(self)
claimed_id parameter doesn't exist in OpenID 1.
source code
 
test_answerAllowWithAnotherIdentity(self) source code
 
test_answerAllowWithIdentityNormalization(self) source code
 
test_answerAllowNoIdentityOpenID1(self) source code
 
test_answerAllowForgotEndpoint(self) source code
 
test_checkIDWithNoIdentityOpenID1(self) source code
 
test_fromMessageClaimedIDWithoutIdentityOpenID2(self) source code
 
test_fromMessageIdentityWithoutClaimedIDOpenID2(self) source code
 
test_trustRootOpenID1(self)
Ignore openid.realm in OpenID 1
source code
 
test_trustRootOpenID2(self)
Ignore openid.trust_root in OpenID 2
source code
 
test_answerAllowNoTrustRoot(self) source code
 
test_fromMessageWithoutTrustRoot(self) source code
 
test_fromMessageWithEmptyTrustRoot(self) source code
 
test_fromMessageWithoutTrustRootOrReturnTo(self) source code
 
test_answerAllowNoEndpointOpenID1(self)
Test .allow() with an OpenID 1.x Message on a CheckIDRequest built without an op_endpoint parameter.
source code
 
test_answerImmediateDenyOpenID2(self)
Look for mode=setup_needed in checkid_immediate negative response in OpenID 2 case.
source code
 
test_answerImmediateDenyOpenID1(self)
Look for user_setup_url in checkid_immediate negative response in OpenID 1 case.
source code
 
test_answerSetupDeny(self) source code
 
test_encodeToURL(self) source code
 
test_getCancelURL(self) source code
 
test_getCancelURLimmed(self) source code

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, tearDown

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

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: unittest.case.TestCase.setUp
(inherited documentation)

test_answerAllow(self)

source code 

Check the fields specified by "Positive Assertions"

including mode=id_res, identity, claimed_id, op_endpoint, return_to

test_answerImmediateDenyOpenID2(self)

source code 

Look for mode=setup_needed in checkid_immediate negative response in OpenID 2 case.

See specification Responding to Authentication Requests / Negative Assertions / In Response to Immediate Requests.