diff test/test_mailgw.py @ 3173:f412ae175b4d maint-0.8

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Mon, 14 Feb 2005 05:56:00 +0000
parents f0b887a5e47b
children 246fed02a51e
line wrap: on
line diff
--- a/test/test_mailgw.py	Mon Feb 14 05:51:14 2005 +0000
+++ b/test/test_mailgw.py	Mon Feb 14 05:56:00 2005 +0000
@@ -8,7 +8,7 @@
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 #
-# $Id: test_mailgw.py,v 1.73 2004-10-24 10:01:58 a1s Exp $
+# $Id: test_mailgw.py,v 1.73.2.1 2005-02-14 05:55:20 richard Exp $
 
 # TODO: test bcc
 
@@ -979,7 +979,6 @@
         self.assertEqual(l, [self.richard_id, self.mary_id])
         return nodeid
 
-
     def testDejaVu(self):
         self.assertRaises(IgnoreLoop, self._handle_mail,
             '''Content-Type: text/plain;
@@ -1008,6 +1007,19 @@
 Hi, I'm on holidays, and this is a dumb auto-responder.
 ''')
 
+    def testAutoReplyEmailsAreIgnored(self):
+        self.assertRaises(IgnoreBulk, self._handle_mail,
+            '''Content-Type: text/plain;
+  charset="iso-8859-1"
+From: Chef <chef@bork.bork.bork>
+To: issue_tracker@your.tracker.email.domain.example
+Cc: richard@test
+Message-Id: <dummy_test_message_id>
+Subject: Re: [issue] Out of office AutoReply: Back next week
+
+Hi, I'm back in the office next week
+''')
+
 def test_suite():
     suite = unittest.TestSuite()
     suite.addTest(unittest.makeSuite(MailgwTestCase))

Roundup Issue Tracker: http://roundup-tracker.org/