summaryrefslogtreecommitdiff
path: root/src/mailman/rules/tests/test_approved.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rules/tests/test_approved.py')
-rw-r--r--src/mailman/rules/tests/test_approved.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mailman/rules/tests/test_approved.py b/src/mailman/rules/tests/test_approved.py
index 7bac07dcc..6a36f2429 100644
--- a/src/mailman/rules/tests/test_approved.py
+++ b/src/mailman/rules/tests/test_approved.py
@@ -138,6 +138,12 @@ A message body.
self._rule.check(self._mlist, self._msg, {})
self.assertEqual(self._msg['x-approve'], None)
+ def test_no_list_password(self):
+ self._mlist.moderator_password = None
+ self._msg['Approved'] = 'super secret'
+ result = self._rule.check(self._mlist, self._msg, {})
+ self.assertFalse(result)
+
class TestApprovedPseudoHeader(unittest.TestCase):