Download this file

queue_tests.py    23 lines (18 with data), 557 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
from nose.tools import *
from lamson.testing import *
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"
project = "test"
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")