From 40828756927efe3406e51cc60e9f36ee68973bae Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sun, 28 Feb 2016 22:20:11 -0800 Subject: Fixed some tests that were broken by prior changes. --- tests/test_handlers.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests') 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'], '') eq(msg['list-unsubscribe'], ',' - '\n\t') + '\n ') eq(msg['list-subscribe'], ',' - '\n\t') + '\n ') eq(msg['list-post'], '') eq(msg['list-archive'], '') @@ -858,10 +858,10 @@ From: aperson@dom.ain eq(msg['list-help'], '') eq(msg['list-unsubscribe'], ',' - '\n\t') + '\n ') eq(msg['list-subscribe'], ',' - '\n\t') + '\n ') eq(msg['list-post'], '') @@ -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')) -- cgit v1.2.3