diff options
| author | Barry Warsaw | 2014-09-21 17:06:40 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2014-09-21 17:06:40 -0400 |
| commit | d8e74b97e3ac8fe364ca2d25ab3d606549c3cabc (patch) | |
| tree | b010a3d6cf3b8028f141e4f963431856d51c98fa /src/mailman/model/tests/test_listmanager.py | |
| parent | 0ad6dc0bf9f69f8245693b86ed2715effebf1fb3 (diff) | |
| download | mailman-d8e74b97e3ac8fe364ca2d25ab3d606549c3cabc.tar.gz mailman-d8e74b97e3ac8fe364ca2d25ab3d606549c3cabc.tar.zst mailman-d8e74b97e3ac8fe364ca2d25ab3d606549c3cabc.zip | |
Diffstat (limited to 'src/mailman/model/tests/test_listmanager.py')
| -rw-r--r-- | src/mailman/model/tests/test_listmanager.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mailman/model/tests/test_listmanager.py b/src/mailman/model/tests/test_listmanager.py index 287a4dba5..3951e8250 100644 --- a/src/mailman/model/tests/test_listmanager.py +++ b/src/mailman/model/tests/test_listmanager.py @@ -80,6 +80,15 @@ class TestListManager(unittest.TestCase): self.assertTrue(isinstance(self._events[1], ListDeletedEvent)) self.assertEqual(self._events[1].fqdn_listname, 'another@example.com') + def test_list_manager_list_ids(self): + # You can get all the list ids for all the existing mailing lists. + create_list('ant@example.com') + create_list('bee@example.com') + create_list('cat@example.com') + self.assertEqual( + sorted(getUtility(IListManager).list_ids), + ['ant.example.com', 'bee.example.com', 'cat.example.com']) + class TestListLifecycleEvents(unittest.TestCase): |
