Mercurial > p > roundup > code
changeset 4478:e7dcec8c40e9
- Add regression test for -c option to mailgw
.-- bug in issue2550697 wasn't noticed, it would be now.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Thu, 14 Apr 2011 07:07:22 +0000 |
| parents | 9be284ce56b7 |
| children | 0bdcb1e7f7ce |
| files | test/test_mailgw.py |
| diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/test_mailgw.py Thu Apr 14 05:29:39 2011 +0000 +++ b/test/test_mailgw.py Thu Apr 14 07:07:22 2011 +0000 @@ -261,6 +261,20 @@ self.assertEqual(self.db.issue.get(nodeid, 'status'), '3') self.assertEqual(self.db.issue.get(nodeid, 'priority'), '1') + def testOptionClass(self): + nodeid = 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 +Message-Id: <dummy_test_message_id> +Reply-To: chef@bork.bork.bork +Subject: [issue] Testing... + +Hi there! +''', (('-c', 'issue'),)) + self.assertEqual(self.db.issue.get(nodeid, 'status'), '3') + self.assertEqual(self.db.issue.get(nodeid, 'priority'), '1') + def doNewIssue(self): nodeid = self._handle_mail('''Content-Type: text/plain; charset="iso-8859-1"
