summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBarry Warsaw2015-09-13 16:04:58 -0400
committerBarry Warsaw2015-09-13 16:04:58 -0400
commit0b8f1e557dadf04333fcb471821a66a9d46af1d1 (patch)
treea21b42e3dd74b78b0d670d8e1d42154cc86cd9d1 /src
parent4e1da5d38e5ed420ae970e8f9f572693fe6cd813 (diff)
downloadmailman-0b8f1e557dadf04333fcb471821a66a9d46af1d1.tar.gz
mailman-0b8f1e557dadf04333fcb471821a66a9d46af1d1.tar.zst
mailman-0b8f1e557dadf04333fcb471821a66a9d46af1d1.zip
Diffstat (limited to 'src')
-rw-r--r--src/mailman/core/tests/test_pipelines.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/mailman/core/tests/test_pipelines.py b/src/mailman/core/tests/test_pipelines.py
index b9074d033..134392668 100644
--- a/src/mailman/core/tests/test_pipelines.py
+++ b/src/mailman/core/tests/test_pipelines.py
@@ -34,7 +34,7 @@ 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, digest_mbox,
+ LogFileMark, digest_mbox, get_queue_messages, reset_the_world,
specialized_message_from_string as mfs)
from mailman.testing.layers import ConfigLayer
from zope.component import getUtility
@@ -135,8 +135,7 @@ testing
def test_decorate_bulk(self):
# Ensure that bulk postings get decorated with the footer.
- msgdata = {}
- process(self._mlist, self._msg, msgdata,
+ process(self._mlist, self._msg, {},
pipeline_name='default-posting-pipeline')
payload = self._msg.get_payload()
self.assertIn('Test mailing list', payload)
@@ -150,20 +149,20 @@ testing
self.assertEqual(payload.count('Test mailing list'), 1)
def test_only_decorate_output(self):
- # Ensure that decoration is not done on the archive, digest or usenet
- # copy.
+ # Ensure that decoration is not done on the archive, digest, or
+ # usenet copy of the message.
self.assertTrue(self._mlist.digestable)
- # setup NNTP
+ # Set up NNTP.
self._mlist.gateway_to_news = True
- self._mlist.linked_newsgroup = "testing"
+ self._mlist.linked_newsgroup = 'testing'
self._mlist.nntp_host = 'news.example.com'
- # process the email
- msgdata = {}
- process(self._mlist, self._msg, msgdata,
+ # Process the email.
+ process(self._mlist, self._msg, {},
pipeline_name='default-posting-pipeline')
for queue in ('archive', 'nntp'):
messages = get_queue_messages(queue)
- self.assertEqual(len(messages), 1,
+ self.assertEqual(
+ len(messages), 1,
'Queue {} has {} messages'.format(queue, len(messages)))
payload = messages[0].msg.get_payload()
self.assertNotIn('Test mailing list', payload)