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

Class TestCheckID

source code

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

Nested Classes

Inherited from unittest.TestCase: failureException

Instance Methods
 
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
 
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.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, tearDown

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: unittest.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.