Package lamson :: Module testing :: Class TestConversation
[hide private]
[frames] | no frames]

Class TestConversation

source code


Used to easily do conversations with an email server such that you send a message and then expect certain responses.

Instance Methods [hide private]
 
__init__(self, relay_to_use, From, Subject)
This creates a set of default values for the conversation so that you can easily send most basic message.
source code
 
begin(self)
Clears out the queue and Router states so that you have a fresh start.
source code
 
deliver(self, To, From, Subject, Body)
Delivers it to the relay.
source code
 
say(self, To, Body, expect=None, Subject=None)
Say something to To and expect a reply with a certain address.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, relay_to_use, From, Subject)
(Constructor)

source code 

This creates a set of default values for the conversation so that you can easily send most basic message. Each method lets you override the Subject and Body when you send.

Overrides: object.__init__

begin(self)

source code 

Clears out the queue and Router states so that you have a fresh start.

deliver(self, To, From, Subject, Body)

source code 

Delivers it to the relay.

say(self, To, Body, expect=None, Subject=None)

source code 

Say something to To and expect a reply with a certain address. It returns the message expected or None.