Package openid :: Package test :: Module test_consumer
[frames] | no frames]

Module test_consumer

source code

Classes
  GoodAssociation
  GoodAssocStore
  TestFetcher
  TestSuccess
  TestSuccessHTTPS
  TestConstruct
  TestIdRes
  TestIdResCheckSignature
  TestQueryFormat
  TestComplete
Testing GenericConsumer.complete.
  TestCompleteMissingSig
  TestCheckAuthResponse
  TestSetupNeeded
  IdResCheckForFieldsTest
  CheckAuthHappened
  CheckNonceVerifyTest
  CheckAuthDetectingConsumer
This is the implementation of the common logic for OpenID consumers.
  TestCheckAuthTriggered
  TestReturnToArgs
Verifying the Return URL paramaters.
  MockFetcher
  ExceptionRaisingMockFetcher
  BadArgCheckingConsumer
  TestCheckAuth
  TestFetchAssoc
  TestSuccessResponse
  StubConsumer
  ConsumerTest
Tests for high-level consumer.Consumer functions.
  IDPDrivenTest
  TestDiscoveryVerification
  TestCreateAssociationRequest
  TestDiffieHellmanResponseParameters
  TestOpenID1SHA1
  TestOpenID2SHA1
  TestOpenID2SHA256
  TestNoStore
  NonAnonymousAuthRequest
  TestConsumerAnonymous
  TestDiscoverAndVerify
  SillyExtension
  TestAddExtension
  TestKVPost
Functions
 
mkSuccess(endpoint, q)
Convenience function to create a SuccessResponse with the given arguments, all signed.
source code
 
parseQuery(qs) source code
 
associate(qs, assoc_secret, assoc_handle)
Do the server's half of the associate call, using the given secret and handle.
source code
 
makeFastConsumerSession()
Create custom DH object so tests run quickly.
source code
 
setConsumerSession(con) source code
Variables
  assocs = [('another 20-byte key.', 'Snarky'), ('\x00\x00\x00\x...
  GOODSIG = '[A Good Signature]'
  http_server_url = 'http://server.example.com/'
  consumer_url = 'http://consumer.example.com/'
  https_server_url = 'https://server.example.com/'
Variables Details

assocs

Value:
[('another 20-byte key.', 'Snarky'),
 ('\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
0\x00\x00\x00',
  'Zeros')]