diff options
Diffstat (limited to 'src/mailman/utilities/tests/test_import.py')
| -rw-r--r-- | src/mailman/utilities/tests/test_import.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mailman/utilities/tests/test_import.py b/src/mailman/utilities/tests/test_import.py index 13c23b32c..b2beb2f3f 100644 --- a/src/mailman/utilities/tests/test_import.py +++ b/src/mailman/utilities/tests/test_import.py @@ -650,15 +650,19 @@ class TestRosterImport(unittest.TestCase): ], 'accept_these_nonmembers': [ 'gene@example.com', + '^gene-.*@example.com', ], 'hold_these_nonmembers': [ 'homer@example.com', + '^homer-.*@example.com', ], 'reject_these_nonmembers': [ 'iris@example.com', + '^iris-.*@example.com', ], 'discard_these_nonmembers': [ 'kenny@example.com', + '^kenny-.*@example.com', ], } self._usermanager = getUtility(IUserManager) @@ -857,6 +861,11 @@ class TestRosterImport(unittest.TestCase): member = self._mlist.nonmembers.get_member( '{}@example.com'.format(name)) self.assertEqual(member.moderation_action, action) + # Only regexps should remain in the list property + list_prop = getattr(self._mlist, + '{}_these_nonmembers'.format(action.name)) + self.assertEqual(len(list_prop), 1) + self.assertTrue(all(addr.startswith('^') for addr in list_prop)) |
