summaryrefslogtreecommitdiff
path: root/src/mailman/core/tests/test_pipelines.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-04-25 22:08:22 -0400
committerBarry Warsaw2012-04-25 22:08:22 -0400
commit658fad42b04420962e6ac478247411ee77483d93 (patch)
treedb16a22376b7191910bf674304c847850169144f /src/mailman/core/tests/test_pipelines.py
parent4488631dff02731ff03f2fef01ee27bbd944812b (diff)
downloadmailman-658fad42b04420962e6ac478247411ee77483d93.tar.gz
mailman-658fad42b04420962e6ac478247411ee77483d93.tar.zst
mailman-658fad42b04420962e6ac478247411ee77483d93.zip
Diffstat (limited to 'src/mailman/core/tests/test_pipelines.py')
-rw-r--r--src/mailman/core/tests/test_pipelines.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mailman/core/tests/test_pipelines.py b/src/mailman/core/tests/test_pipelines.py
index 8f851de95..8e76cf033 100644
--- a/src/mailman/core/tests/test_pipelines.py
+++ b/src/mailman/core/tests/test_pipelines.py
@@ -29,7 +29,7 @@ __all__ = [
import unittest
from zope.component import getUtility
-from zope.interface import implements
+from zope.interface import implementer
from mailman.app.lifecycle import create_list
from mailman.config import config
@@ -48,24 +48,24 @@ from mailman.testing.layers import ConfigLayer
+@implementer(IHandler)
class DiscardingHandler:
- implements(IHandler)
name = 'discarding'
def process(self, mlist, msg, msgdata):
raise DiscardMessage('by test handler')
+@implementer(IHandler)
class RejectHandler:
- implements(IHandler)
name = 'rejecting'
def process(self, mlist, msg, msgdata):
raise RejectMessage('by test handler')
+@implementer(IPipeline)
class DiscardingPipeline:
- implements(IPipeline)
name = 'test-discarding'
description = 'Discarding test pipeline'
@@ -73,8 +73,8 @@ class DiscardingPipeline:
yield DiscardingHandler()
+@implementer(IPipeline)
class RejectingPipeline:
- implements(IPipeline)
name = 'test-rejecting'
description = 'Rejectinging test pipeline'