[BangPypers] Embedded python mail server

Dhananjay Nene dhananjay.nene at gmail.com
Wed Aug 24 07:39:49 CEST 2011


On Wed, Aug 24, 2011 at 11:06 AM, Anand Chitipothu <anandology at gmail.com> wrote:
> 2011/8/24 Dhananjay Nene <dhananjay.nene at gmail.com>:
>> What would be good options to embed a python mail server ?
>>
>> The scope is strictly restricted to automated testing. So the embedded
>> mail server (embedded in the test cases) acts as the server which
>> receives email and is in turn further queried to ensure receipt of
>> email correctly.
>>
>> One option is http://lamsonproject.org/
>>
>> Are there any other options you might suggest?
>
> Do you really want to run a mail server for testing? I usually monkey
> patch the function to send email and store the emails in a global
> variable for later access.
>

In automated acceptance testing context I believe it would be
appropriate to implement a mail server. With unit tests, stubbing the
mail server with a mock would've been fine.

Dhananjay


More information about the BangPypers mailing list