summaryrefslogtreecommitdiff
path: root/src/mailman/runners/tests/test_pipeline.py
diff options
context:
space:
mode:
authorBarry Warsaw2015-01-04 20:20:33 -0500
committerBarry Warsaw2015-01-04 20:20:33 -0500
commit4a612db8e89afed74173b93f3b64fa567b8417a3 (patch)
tree81a687d113079a25f93279f35c7eee2aa2572510 /src/mailman/runners/tests/test_pipeline.py
parent84af79988a4e916604cba31843778206efb7d1b8 (diff)
parentde181c1a40965a3a7deedd56a034a946f45b6984 (diff)
downloadmailman-4a612db8e89afed74173b93f3b64fa567b8417a3.tar.gz
mailman-4a612db8e89afed74173b93f3b64fa567b8417a3.tar.zst
mailman-4a612db8e89afed74173b93f3b64fa567b8417a3.zip
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()