diff options
| author | Aurélien Bompard | 2015-11-20 08:58:58 +0100 |
|---|---|---|
| committer | Barry Warsaw | 2015-11-21 19:51:28 -0500 |
| commit | 6c002fbd75571f065c70f28034457a45e51af97c (patch) | |
| tree | 78852f05741ccfd435115dc5f9449823c76bdba5 /src/mailman/rules/tests/test_approved.py | |
| parent | e9a522a4a9266c8f044b29c2c3075bd29d90cfc5 (diff) | |
| download | mailman-6c002fbd75571f065c70f28034457a45e51af97c.tar.gz mailman-6c002fbd75571f065c70f28034457a45e51af97c.tar.zst mailman-6c002fbd75571f065c70f28034457a45e51af97c.zip | |
Diffstat (limited to 'src/mailman/rules/tests/test_approved.py')
| -rw-r--r-- | src/mailman/rules/tests/test_approved.py | 6 |
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): |
