summaryrefslogtreecommitdiff
path: root/src/mailman/commands/tests/test_confirm.py
diff options
context:
space:
mode:
authorBarry Warsaw2015-04-14 12:46:11 -0400
committerBarry Warsaw2015-04-14 12:46:11 -0400
commit2787473f0bd4ca3efeadb7f44c8f61c3695e7ecd (patch)
tree4ba9e86dd16b53c623410e66c459dc394008b698 /src/mailman/commands/tests/test_confirm.py
parent24c01dbd8e93acdc61884b3b9783a0e71fd6df23 (diff)
downloadmailman-2787473f0bd4ca3efeadb7f44c8f61c3695e7ecd.tar.gz
mailman-2787473f0bd4ca3efeadb7f44c8f61c3695e7ecd.tar.zst
mailman-2787473f0bd4ca3efeadb7f44c8f61c3695e7ecd.zip
Diffstat (limited to 'src/mailman/commands/tests/test_confirm.py')
-rw-r--r--src/mailman/commands/tests/test_confirm.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mailman/commands/tests/test_confirm.py b/src/mailman/commands/tests/test_confirm.py
index dd168454f..2f6a8088f 100644
--- a/src/mailman/commands/tests/test_confirm.py
+++ b/src/mailman/commands/tests/test_confirm.py
@@ -29,6 +29,7 @@ from mailman.commands.eml_confirm import Confirm
from mailman.email.message import Message
from mailman.interfaces.command import ContinueProcessing
from mailman.interfaces.registrar import IRegistrar
+from mailman.interfaces.usermanager import IUserManager
from mailman.runners.command import Results
from mailman.testing.helpers import get_queue_messages, reset_the_world
from mailman.testing.layers import ConfigLayer
@@ -43,8 +44,9 @@ class TestConfirm(unittest.TestCase):
def setUp(self):
self._mlist = create_list('test@example.com')
- self._token = getUtility(IRegistrar).register(
- self._mlist, 'anne@example.com', 'Anne Person')
+ anne = getUtility(IUserManager).create_address(
+ 'anne@example.com', 'Anne Person')
+ self._token = IRegistrar(self._mlist).register(anne)
self._command = Confirm()
# Clear the virgin queue.
get_queue_messages('virgin')