Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 3810:4536c0e544be
Bah! The python-mode in my emacs is borked by this line,,,
...so I'm rephrasing for better syntax highlighting.
| author | Erik Forsberg <forsberg@users.sourceforge.net> |
|---|---|
| date | Sun, 21 Jan 2007 15:22:02 +0000 |
| parents | 12fc9a8bd3e6 |
| children | ccd55dc53410 |
comparison
equal
deleted
inserted
replaced
| 3809:12fc9a8bd3e6 | 3810:4536c0e544be |
|---|---|
| 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.80 2007-01-21 15:18:25 forsberg Exp $ | 11 # $Id: test_mailgw.py,v 1.81 2007-01-21 15:22:02 forsberg 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 |
| 1081 To: issue_tracker@your.tracker.email.domain.example | 1081 To: issue_tracker@your.tracker.email.domain.example |
| 1082 Cc: richard@test | 1082 Cc: richard@test |
| 1083 Message-Id: <dummy_test_message_id> | 1083 Message-Id: <dummy_test_message_id> |
| 1084 Subject: Re: [issue] Out of office AutoReply: Back next week | 1084 Subject: Re: [issue] Out of office AutoReply: Back next week |
| 1085 | 1085 |
| 1086 Hi, I'm back in the office next week | 1086 Hi, I am back in the office next week |
| 1087 ''') | 1087 ''') |
| 1088 | 1088 |
| 1089 def testNoSubject(self): | 1089 def testNoSubject(self): |
| 1090 self.assertRaises(MailUsageError, self._handle_mail, | 1090 self.assertRaises(MailUsageError, self._handle_mail, |
| 1091 '''Content-Type: text/plain; | 1091 '''Content-Type: text/plain; |
