summaryrefslogtreecommitdiff
path: root/src/mailman/core/tests/test_pipelines.py
diff options
context:
space:
mode:
authorBarry Warsaw2014-12-22 20:06:20 -0500
committerBarry Warsaw2014-12-22 20:06:20 -0500
commit286fac3f7c580dfc137ac11290a2ba5713f69472 (patch)
tree1449121ac40dca604016bdef820e32ac08964d39 /src/mailman/core/tests/test_pipelines.py
parentfdd4748e2bb8da32a737aef3ba4d7705f654c729 (diff)
downloadmailman-286fac3f7c580dfc137ac11290a2ba5713f69472.tar.gz
mailman-286fac3f7c580dfc137ac11290a2ba5713f69472.tar.zst
mailman-286fac3f7c580dfc137ac11290a2ba5713f69472.zip
Diffstat (limited to 'src/mailman/core/tests/test_pipelines.py')
-rw-r--r--src/mailman/core/tests/test_pipelines.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mailman/core/tests/test_pipelines.py b/src/mailman/core/tests/test_pipelines.py
index 67e6af36e..91be1f79f 100644
--- a/src/mailman/core/tests/test_pipelines.py
+++ b/src/mailman/core/tests/test_pipelines.py
@@ -17,9 +17,6 @@
"""Test the core modification pipelines."""
-from __future__ import absolute_import, print_function, unicode_literals
-
-__metaclass__ = type
__all__ = [
'TestOwnerPipeline',
'TestPostingPipeline',
@@ -28,9 +25,6 @@ __all__ = [
import unittest
-from zope.component import getUtility
-from zope.interface import implementer
-
from mailman.app.lifecycle import create_list
from mailman.config import config
from mailman.core.errors import DiscardMessage, RejectMessage
@@ -40,11 +34,11 @@ from mailman.interfaces.member import MemberRole
from mailman.interfaces.pipeline import IPipeline
from mailman.interfaces.usermanager import IUserManager
from mailman.testing.helpers import (
- LogFileMark,
- get_queue_messages,
- reset_the_world,
+ LogFileMark, get_queue_messages, reset_the_world,
specialized_message_from_string as mfs)
from mailman.testing.layers import ConfigLayer
+from zope.component import getUtility
+from zope.interface import implementer
@@ -175,5 +169,5 @@ To: test-owner@example.com
pipeline_name='default-owner-pipeline')
messages = get_queue_messages('out', sort_on='to')
self.assertEqual(len(messages), 1)
- self.assertEqual(messages[0].msgdata['recipients'],
+ self.assertEqual(messages[0].msgdata['recipients'],
set(('anne@example.com', 'bart@example.com')))