Package openid :: Package test :: Module test_negotiation :: Class ErrorRaisingConsumer
[hide private]
[frames] | no frames]

Class ErrorRaisingConsumer

source code

                       object --+    
                                |    
consumer.consumer.GenericConsumer --+
                                    |
                                   ErrorRaisingConsumer

A consumer whose _requestAssocation will return predefined results instead of trying to actually perform association requests.

Instance Methods [hide private]
 
_requestAssociation(self, endpoint, assoc_type, session_type)
Make and process one association request to this endpoint's OP endpoint URL.
source code

Inherited from consumer.consumer.GenericConsumer: __init__, begin, complete

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
Class Variables [hide private]
  return_messages = []

Inherited from consumer.consumer.GenericConsumer: openid1_nonce_query_arg_name, openid1_return_to_identifier_name, session_types

Inherited from consumer.consumer.GenericConsumer (private): _discover

Instance Variables [hide private]

Inherited from consumer.consumer.GenericConsumer: negotiator

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_requestAssociation(self, endpoint, assoc_type, session_type)

source code 

Make and process one association request to this endpoint's OP endpoint URL.

Returns:
An association object or None if the association processing failed.
Raises:
  • ServerError - when the remote OpenID server returns an error.
Overrides: consumer.consumer.GenericConsumer._requestAssociation
(inherited documentation)