diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2016-03-02 18:57:16 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2016-03-02 18:57:16 +0900 |
commit | 3d3ed445c841f40e793e733956ab65287ca5cfe1 (patch) | |
tree | f54b733b0a6a3353cb595d6c4664689ea5bf8a3f /tests | |
parent | 7bee928877b9771072c32c47912b346b41ce3c35 (diff) | |
parent | 8f22ba21a32701d2efaac0b8b1a1c0a4522912b0 (diff) | |
download | mailman2-3d3ed445c841f40e793e733956ab65287ca5cfe1.tar.gz mailman2-3d3ed445c841f40e793e733956ab65287ca5cfe1.tar.xz mailman2-3d3ed445c841f40e793e733956ab65287ca5cfe1.zip |
Update to lp:mailman/2.1 rev 1629 (no difference against the original branch
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_handlers.py | 16 |
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')) |