summaryrefslogtreecommitdiff
path: root/src/mailman/runners/tests/test_pipeline.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/runners/tests/test_pipeline.py')
-rw-r--r--src/mailman/runners/tests/test_pipeline.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mailman/runners/tests/test_pipeline.py b/src/mailman/runners/tests/test_pipeline.py
index 50ec6cb9a..347bde16b 100644
--- a/src/mailman/runners/tests/test_pipeline.py
+++ b/src/mailman/runners/tests/test_pipeline.py
@@ -17,9 +17,6 @@
"""Test the pipeline runner."""
-from __future__ import absolute_import, print_function, unicode_literals
-
-__metaclass__ = type
__all__ = [
'TestPipelineRunner',
]
@@ -27,17 +24,15 @@ __all__ = [
import unittest
-from zope.interface import implementer
-
from mailman.app.lifecycle import create_list
from mailman.config import config
from mailman.interfaces.handler import IHandler
from mailman.interfaces.pipeline import IPipeline
from mailman.runners.pipeline import PipelineRunner
from mailman.testing.helpers import (
- make_testable_runner,
- specialized_message_from_string as mfs)
+ make_testable_runner, specialized_message_from_string as mfs)
from mailman.testing.layers import ConfigLayer
+from zope.interface import implementer
@@ -101,7 +96,7 @@ To: test@example.com
def test_posting(self):
# A message accepted for posting gets processed through the posting
# pipeline.
- msgdata = dict(listname='test@example.com')
+ msgdata = dict(listid='test.example.com')
config.switchboards['pipeline'].enqueue(self._msg, msgdata)
self._pipeline.run()
self.assertEqual(len(self._markers), 1)
@@ -110,7 +105,7 @@ To: test@example.com
def test_owner(self):
# A message accepted for posting to a list's owners gets processed
# through the owner pipeline.
- msgdata = dict(listname='test@example.com',
+ msgdata = dict(listid='test.example.com',
to_owner=True)
config.switchboards['pipeline'].enqueue(self._msg, msgdata)
self._pipeline.run()