aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2016-02-28 22:20:11 -0800
committerMark Sapiro <mark@msapiro.net>2016-02-28 22:20:11 -0800
commit40828756927efe3406e51cc60e9f36ee68973bae (patch)
treeec6ea382e175fad85f1c594228f773c965817751
parentab5b961be9ed02d583185aabe6a8bbc52bdf3838 (diff)
downloadmailman2-40828756927efe3406e51cc60e9f36ee68973bae.tar.gz
mailman2-40828756927efe3406e51cc60e9f36ee68973bae.tar.xz
mailman2-40828756927efe3406e51cc60e9f36ee68973bae.zip
Fixed some tests that were broken by prior changes.
-rw-r--r--tests/test_handlers.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_handlers.py b/tests/test_handlers.py
index 8f6219e8..049ac35e 100644
--- a/tests/test_handlers.py
+++ b/tests/test_handlers.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2015 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2016 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -838,10 +838,10 @@ From: aperson@dom.ain
eq(msg['list-help'], '<mailto:_xtest-request@dom.ain?subject=help>')
eq(msg['list-unsubscribe'],
'<http://www.dom.ain/mailman/options/_xtest>,'
- '\n\t<mailto:_xtest-request@dom.ain?subject=unsubscribe>')
+ '\n <mailto:_xtest-request@dom.ain?subject=unsubscribe>')
eq(msg['list-subscribe'],
'<http://www.dom.ain/mailman/listinfo/_xtest>,'
- '\n\t<mailto:_xtest-request@dom.ain?subject=subscribe>')
+ '\n <mailto:_xtest-request@dom.ain?subject=subscribe>')
eq(msg['list-post'], '<mailto:_xtest@dom.ain>')
eq(msg['list-archive'], '<http://www.dom.ain/pipermail/_xtest/>')
@@ -858,10 +858,10 @@ From: aperson@dom.ain
eq(msg['list-help'], '<mailto:_xtest-request@dom.ain?subject=help>')
eq(msg['list-unsubscribe'],
'<http://www.dom.ain/mailman/options/_xtest>,'
- '\n\t<mailto:_xtest-request@dom.ain?subject=unsubscribe>')
+ '\n <mailto:_xtest-request@dom.ain?subject=unsubscribe>')
eq(msg['list-subscribe'],
'<http://www.dom.ain/mailman/listinfo/_xtest>,'
- '\n\t<mailto:_xtest-request@dom.ain?subject=subscribe>')
+ '\n <mailto:_xtest-request@dom.ain?subject=subscribe>')
eq(msg['list-post'], '<mailto:_xtest@dom.ain>')
@@ -1771,7 +1771,7 @@ class TestReplybot(TestBase):
class TestSpamDetect(TestBase):
def test_short_circuit(self):
msgdata = {'approved': 1}
- msg = email.message_from_string('')
+ msg = email.message_from_string('', Message.Message)
rtn = SpamDetect.process(self._mlist, msg, msgdata)
# Not really a great test, but there's little else to assert
self.assertEqual(rtn, None)
@@ -1781,12 +1781,12 @@ class TestSpamDetect(TestBase):
From: aperson@dom.ain
A message.
-""")
+""", Message.Message)
msg2 = email.message_from_string("""\
To: xlist@dom.ain
A message.
-""")
+""", Message.Message)
spammers = mm_cfg.KNOWN_SPAMMERS[:]
try:
mm_cfg.KNOWN_SPAMMERS.append(('from', '.?person'))