38
38
from mailman.app.lifecycle import create_list
39
39
from mailman.config import config
40
from mailman.database.transaction import transaction
40
41
from mailman.interfaces.member import MemberRole
41
42
from mailman.interfaces.usermanager import IUserManager
42
43
from mailman.testing.helpers import (
59
60
self._mlist = create_list('test@example.com')
60
61
# Add some owners, moderators, and members
61
62
manager = getUtility(IUserManager)
62
anne = manager.create_address('anne@example.com')
63
bart = manager.create_address('bart@example.com')
64
cris = manager.create_address('cris@example.com')
65
dave = manager.create_address('dave@example.com')
66
self._mlist.subscribe(anne, MemberRole.member)
67
self._mlist.subscribe(anne, MemberRole.owner)
68
self._mlist.subscribe(bart, MemberRole.moderator)
69
self._mlist.subscribe(bart, MemberRole.owner)
70
self._mlist.subscribe(cris, MemberRole.moderator)
71
self._mlist.subscribe(dave, MemberRole.member)
64
anne = manager.create_address('anne@example.com')
65
bart = manager.create_address('bart@example.com')
66
cris = manager.create_address('cris@example.com')
67
dave = manager.create_address('dave@example.com')
68
self._mlist.subscribe(anne, MemberRole.member)
69
self._mlist.subscribe(anne, MemberRole.owner)
70
self._mlist.subscribe(bart, MemberRole.moderator)
71
self._mlist.subscribe(bart, MemberRole.owner)
72
self._mlist.subscribe(cris, MemberRole.moderator)
73
self._mlist.subscribe(dave, MemberRole.member)
73
74
self._inq = make_testable_runner(IncomingRunner, 'in')
74
75
self._pipelineq = make_testable_runner(PipelineRunner, 'pipeline')
75
76
self._outq = make_testable_runner(OutgoingRunner, 'out')