diff options
| author | Abhilash Raj | 2015-04-15 22:49:58 -0400 |
|---|---|---|
| committer | Abhilash Raj | 2015-04-15 22:49:58 -0400 |
| commit | 342b878edae5f19c8db195abce684d8a20ef2c37 (patch) | |
| tree | 91361d6f68317cc8b4e2a47ae07cbca904764a9a /src/mailman/commands/tests/test_confirm.py | |
| parent | bc515c8ce1dd7e0f2221f5ae5f572d2e42d9fe18 (diff) | |
| parent | 2f2e4aa6684a0930395d56a77078aa39ee7786a5 (diff) | |
| download | mailman-342b878edae5f19c8db195abce684d8a20ef2c37.tar.gz mailman-342b878edae5f19c8db195abce684d8a20ef2c37.tar.zst mailman-342b878edae5f19c8db195abce684d8a20ef2c37.zip | |
Diffstat (limited to 'src/mailman/commands/tests/test_confirm.py')
| -rw-r--r-- | src/mailman/commands/tests/test_confirm.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mailman/commands/tests/test_confirm.py b/src/mailman/commands/tests/test_confirm.py index dd168454f..98a26bf7d 100644 --- a/src/mailman/commands/tests/test_confirm.py +++ b/src/mailman/commands/tests/test_confirm.py @@ -29,8 +29,9 @@ 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.helpers import get_queue_messages from mailman.testing.layers import ConfigLayer from zope.component import getUtility @@ -43,15 +44,13 @@ 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') - def tearDown(self): - reset_the_world() - def test_welcome_message(self): # A confirmation causes a welcome message to be sent to the member, if # enabled by the mailing list. |
