diff options
| author | Barry Warsaw | 2015-04-15 22:51:39 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2015-04-15 22:51:39 -0400 |
| commit | 08f457799cd36349a4fd22642f4c05b4eabb306d (patch) | |
| tree | c4d2270bce3862e71a252d941e3942860a8c8565 /src/mailman/runners/tests/test_join.py | |
| parent | 6c094ce9d81cd5e12ba13c851cbd1018ca3fb935 (diff) | |
| download | mailman-08f457799cd36349a4fd22642f4c05b4eabb306d.tar.gz mailman-08f457799cd36349a4fd22642f4c05b4eabb306d.tar.zst mailman-08f457799cd36349a4fd22642f4c05b4eabb306d.zip | |
Diffstat (limited to 'src/mailman/runners/tests/test_join.py')
| -rw-r--r-- | src/mailman/runners/tests/test_join.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mailman/runners/tests/test_join.py b/src/mailman/runners/tests/test_join.py index c3b52cf0c..1067517e2 100644 --- a/src/mailman/runners/tests/test_join.py +++ b/src/mailman/runners/tests/test_join.py @@ -30,7 +30,7 @@ from mailman.app.lifecycle import create_list from mailman.config import config from mailman.interfaces.member import DeliveryMode from mailman.interfaces.registrar import IRegistrar -from mailman.interfaces.subscriptions import ISubscriptionService +from mailman.interfaces.subscriptions import ISubscriptionService, TokenOwner from mailman.interfaces.usermanager import IUserManager from mailman.runners.command import CommandRunner from mailman.testing.helpers import ( @@ -160,14 +160,16 @@ class TestJoinWithDigests(unittest.TestCase): subject_words = str(messages[1].msg['subject']).split() self.assertEqual(subject_words[0], 'confirm') token = subject_words[1] - status = IRegistrar(self._mlist).confirm(token) - self.assertIsNone(status, 'Confirmation failed') + token, token_owner, rmember = IRegistrar(self._mlist).confirm(token) + self.assertIsNone(token) + self.assertEqual(token_owner, TokenOwner.no_one) # Now, make sure that Anne is a member of the list and is receiving # digest deliveries. members = getUtility(ISubscriptionService).find_members( 'anne@example.org') self.assertEqual(len(members), 1) - return members[0] + self.assertEqual(rmember, members[0]) + return rmember def test_join_with_implicit_no_digests(self): # Test the digest=mime argument to the join command. |
