summaryrefslogtreecommitdiff
path: root/src/mailman/runners/tests/test_confirm.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/runners/tests/test_confirm.py')
-rw-r--r--src/mailman/runners/tests/test_confirm.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mailman/runners/tests/test_confirm.py b/src/mailman/runners/tests/test_confirm.py
index 7dc2403fc..d49ba217b 100644
--- a/src/mailman/runners/tests/test_confirm.py
+++ b/src/mailman/runners/tests/test_confirm.py
@@ -24,14 +24,14 @@ from email.iterators import body_line_iterator
from mailman.app.lifecycle import create_list
from mailman.config import config
from mailman.database.transaction import transaction
-from mailman.interfaces.registrar import IRegistrar
+from mailman.interfaces.workflowmanager import IWorkflowManager
from mailman.interfaces.usermanager import IUserManager
from mailman.runners.command import CommandRunner
from mailman.testing.helpers import (
get_queue_messages, make_testable_runner,
specialized_message_from_string as mfs)
from mailman.testing.layers import ConfigLayer
-from zope.component import getUtility
+from zope.component import getUtility, getAdapter
class TestConfirm(unittest.TestCase):
@@ -47,7 +47,8 @@ class TestConfirm(unittest.TestCase):
self._mlist = create_list('test@example.com')
self._mlist.send_welcome_message = False
anne = getUtility(IUserManager).create_address('anne@example.org')
- registrar = IRegistrar(self._mlist)
+ registrar = getAdapter(
+ self._mlist, IWorkflowManager, name='subscribe')
self._token, token_owner, member = registrar.register(anne)
def test_confirm_with_re_prefix(self):