From: schlatterbeck Date: Thu, 14 Apr 2011 07:07:22 +0000 (+0000) Subject: - Add regression test for -c option to mailgw -- bug in issue2550697 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aedd55810ec44b677c6e76b879c1a26e952e8296;p=roundup.git - Add regression test for -c option to mailgw -- bug in issue2550697 wasn't noticed, it would be now. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4587 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/test/test_mailgw.py b/test/test_mailgw.py index 7c11bef..0d698b6 100644 --- a/test/test_mailgw.py +++ b/test/test_mailgw.py @@ -261,6 +261,20 @@ Hi there! 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 +To: issue_tracker@your.tracker.email.domain.example +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"