Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 4005:3dec28d96583 1.4.5
fix some unit tests for python2.3
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 19 Aug 2008 01:40:59 +0000 |
| parents | b0bf39985f30 |
| children | 4b0ddce43d08 |
comparison
equal
deleted
inserted
replaced
| 4004:e437f4031310 | 4005:3dec28d96583 |
|---|---|
| 6 # | 6 # |
| 7 # This module is distributed in the hope that it will be useful, | 7 # This module is distributed in the hope that it will be useful, |
| 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 10 # | 10 # |
| 11 # $Id: test_mailgw.py,v 1.95 2008-08-19 01:10:35 richard Exp $ | 11 # $Id: test_mailgw.py,v 1.96 2008-08-19 01:40:59 richard Exp $ |
| 12 | 12 |
| 13 # TODO: test bcc | 13 # TODO: test bcc |
| 14 | 14 |
| 15 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822, time | 15 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822, time |
| 16 | 16 |
| 680 Message-Id: <followup_dummy_id> | 680 Message-Id: <followup_dummy_id> |
| 681 Subject: Re: Testing... | 681 Subject: Re: Testing... |
| 682 | 682 |
| 683 This is a followup | 683 This is a followup |
| 684 '''), nodeid) | 684 '''), nodeid) |
| 685 # now try a longer interval | 685 |
| 686 | |
| 687 def testFollowupTitleMatchInterval(self): | |
| 688 nodeid = self.doNewIssue() | |
| 686 self.db.config.MAILGW_SUBJECT_CONTENT_MATCH = 'creation +1d' | 689 self.db.config.MAILGW_SUBJECT_CONTENT_MATCH = 'creation +1d' |
| 687 self.assertEqual(self._handle_mail('''Content-Type: text/plain; | 690 self.assertEqual(self._handle_mail('''Content-Type: text/plain; |
| 688 charset="iso-8859-1" | 691 charset="iso-8859-1" |
| 689 From: richard <richard@test.test> | 692 From: richard <richard@test.test> |
| 690 To: issue_tracker@your.tracker.email.domain.example | 693 To: issue_tracker@your.tracker.email.domain.example |
