summaryrefslogtreecommitdiff
path: root/src/mailman/rules/tests/test_moderation.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-03-23 23:40:54 -0400
committerBarry Warsaw2016-03-23 23:40:54 -0400
commitf51c63ca108134dd30f26641bef15bfcddd6e502 (patch)
treeb3cc41a2d54d11f62886db7ceab3985b9bee18f1 /src/mailman/rules/tests/test_moderation.py
parentab2b619db5f3de47cffc2740901c4f82958a7d96 (diff)
downloadmailman-f51c63ca108134dd30f26641bef15bfcddd6e502.tar.gz
mailman-f51c63ca108134dd30f26641bef15bfcddd6e502.tar.zst
mailman-f51c63ca108134dd30f26641bef15bfcddd6e502.zip
Diffstat (limited to 'src/mailman/rules/tests/test_moderation.py')
-rw-r--r--src/mailman/rules/tests/test_moderation.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mailman/rules/tests/test_moderation.py b/src/mailman/rules/tests/test_moderation.py
index 655e92863..df1658792 100644
--- a/src/mailman/rules/tests/test_moderation.py
+++ b/src/mailman/rules/tests/test_moderation.py
@@ -17,11 +17,6 @@
"""Test the `member-moderation` and `nonmember-moderation` rules."""
-__all__ = [
- 'TestModeration',
- ]
-
-
import unittest
from mailman.app.lifecycle import create_list
@@ -34,7 +29,6 @@ from mailman.testing.layers import ConfigLayer
from zope.component import getUtility
-
class TestModeration(unittest.TestCase):
"""Test the approved handler."""
@@ -147,5 +141,6 @@ A message body.
result = rule.check(self._mlist, msg, msgdata)
self.assertTrue(result, 'NonmemberModeration rule should hit')
self.assertIn('moderation_action', msgdata)
- self.assertEqual(msgdata['moderation_action'], action_name,
+ self.assertEqual(
+ msgdata['moderation_action'], action_name,
'Wrong action for {}: {}'.format(address, action_name))