Parent: [3abb2e] (diff)

Download this file

test_mail.py    21 lines (16 with data), 539 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
from lamson.testing import relay, RouterConversation
import os
from lamson import server
relay = relay(port=8823)
client = RouterConversation("queuetester@localhost", "requests_tests")
confirm_format = "testing-confirm-[0-9]+@"
noreply_format = "testing-noreply@"
host = "localhost"
list_name = "forge-list"
list_addr = "forge-list@%s" % host
def test_queue_mailing_list():
"""
Then make sure that mailing list messages queued properly.
"""
client.begin()
client.say(list_addr, "Test mailing list queued properly")