summaryrefslogtreecommitdiff
path: root/src/mailman/testing/mta.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-03-25 18:19:39 -0400
committerBarry Warsaw2016-03-25 18:19:39 -0400
commit01433eedaeea07b72bfc8b2a970a1e0023975cd6 (patch)
treeadeb9011ddc4257fb5b921cf667cb13df540fb8c /src/mailman/testing/mta.py
parentc4f99aac5e691f147023f58dc196526cffb2b718 (diff)
downloadmailman-01433eedaeea07b72bfc8b2a970a1e0023975cd6.tar.gz
mailman-01433eedaeea07b72bfc8b2a970a1e0023975cd6.tar.zst
mailman-01433eedaeea07b72bfc8b2a970a1e0023975cd6.zip
Diffstat (limited to 'src/mailman/testing/mta.py')
-rw-r--r--src/mailman/testing/mta.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mailman/testing/mta.py b/src/mailman/testing/mta.py
index 9642803e2..c1327f428 100644
--- a/src/mailman/testing/mta.py
+++ b/src/mailman/testing/mta.py
@@ -17,15 +17,11 @@
"""Fake MTA for testing purposes."""
-__all__ = [
- 'FakeMTA',
- ]
-
-
import logging
from lazr.smtptest.controller import QueueController
from lazr.smtptest.server import Channel, QueueServer
+from mailman import public
from mailman.interfaces.mta import IMailTransportAgentLifecycle
from queue import Empty, Queue
from zope.interface import implementer
@@ -34,7 +30,7 @@ from zope.interface import implementer
log = logging.getLogger('lazr.smtptest')
-
+@public
@implementer(IMailTransportAgentLifecycle)
class FakeMTA:
"""Fake MTA for testing purposes."""
@@ -49,7 +45,6 @@ class FakeMTA:
pass
-
class StatisticsChannel(Channel):
"""A channel that can answers to the fake STAT command."""
@@ -134,7 +129,6 @@ class StatisticsChannel(Channel):
super().found_terminator()
-
class ConnectionCountingServer(QueueServer):
"""Count the number of SMTP connections opened."""
@@ -210,7 +204,6 @@ class ConnectionCountingServer(QueueServer):
self._oob_queue.put(arg)
-
class ConnectionCountingController(QueueController):
"""Count the number of SMTP connections opened."""