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

Class RouterConversation

source code


An implementation of TestConversation that routes the messages internally to the Router, rather than connecting with a relay. Use it in tests that are not integration tests.

Instance Methods [hide private]
 
__init__(self, From, Subject)
This creates a set of default values for the conversation so that you can easily send most basic message.
source code
 
deliver(self, To, From, Subject, Body)
Overrides TestConversation.deliver to do it internally.
source code

Inherited from TestConversation: begin, say

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, 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__
(inherited documentation)

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

source code 

Overrides TestConversation.deliver to do it internally.

Overrides: TestConversation.deliver