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

Class TestCheckID

source code

unittest.TestCase --+
                    |
                   TestCheckID

Instance Methods [hide private]
 
setUp(self) 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
Method Details [hide private]

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.