diff options
| author | Barry Warsaw | 2015-04-15 10:05:35 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2015-04-15 10:05:35 -0400 |
| commit | 67fd8d6dbcf8849b3c2f8cb42a10aed465ace76c (patch) | |
| tree | 97eca0ae33c97015e4d2fca31e7792e2a929fa8d /src/mailman/runners/tests/test_confirm.py | |
| parent | 7317b94a0b746f0287ecbc5654ec544ce0112adb (diff) | |
| parent | 3e7dffa750a3e7bb15ac10b711832696554ba03a (diff) | |
| download | mailman-67fd8d6dbcf8849b3c2f8cb42a10aed465ace76c.tar.gz mailman-67fd8d6dbcf8849b3c2f8cb42a10aed465ace76c.tar.zst mailman-67fd8d6dbcf8849b3c2f8cb42a10aed465ace76c.zip | |
* Mailing list subscription policy work flow has been completely rewritten.
It now properly supports email verification and subscription confirmation
by the user, and approval by the moderator using unique tokens.
``IMailingList`` objects now have a ``subscription_policy`` attribute.
Diffstat (limited to 'src/mailman/runners/tests/test_confirm.py')
| -rw-r--r-- | src/mailman/runners/tests/test_confirm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/runners/tests/test_confirm.py b/src/mailman/runners/tests/test_confirm.py index 090451ce7..71ec5988d 100644 --- a/src/mailman/runners/tests/test_confirm.py +++ b/src/mailman/runners/tests/test_confirm.py @@ -46,14 +46,14 @@ class TestConfirm(unittest.TestCase): layer = ConfigLayer def setUp(self): - registrar = getUtility(IRegistrar) self._commandq = config.switchboards['command'] self._runner = make_testable_runner(CommandRunner, 'command') with transaction(): # Register a subscription requiring confirmation. self._mlist = create_list('test@example.com') self._mlist.send_welcome_message = False - self._token = registrar.register(self._mlist, 'anne@example.org') + anne = getUtility(IUserManager).create_address('anne@example.org') + self._token = IRegistrar(self._mlist).register(anne) def test_confirm_with_re_prefix(self): subject = 'Re: confirm {0}'.format(self._token) |
