summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mailman/model/tests/test_bans.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mailman/model/tests/test_bans.py b/src/mailman/model/tests/test_bans.py
index c4fa57338..761d24364 100644
--- a/src/mailman/model/tests/test_bans.py
+++ b/src/mailman/model/tests/test_bans.py
@@ -23,6 +23,7 @@ from mailman.app.lifecycle import create_list
from mailman.interfaces.bans import IBanManager
from mailman.interfaces.listmanager import IListManager
from mailman.testing.layers import ConfigLayer
+from mailman.utilities.queries import QuerySequence
from zope.component import getUtility
@@ -46,3 +47,8 @@ class TestMailingListBans(unittest.TestCase):
getUtility(IListManager).delete(self._mlist)
self.assertEqual([ban.email for ban in global_ban_manager],
['bart@example.com'])
+
+ def test_bans_property(self):
+ # Bans is a property of `IBanManager` which returns QuerySequence.
+ self.assertIsInstance(self._manager.__class__.bans, property)
+ self.assertIsInstance(self._manager.bans, QuerySequence)