From aedd55810ec44b677c6e76b879c1a26e952e8296 Mon Sep 17 00:00:00 2001 From: schlatterbeck Date: Thu, 14 Apr 2011 07:07:22 +0000 Subject: [PATCH] - 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 --- test/test_mailgw.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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" -- 2.30.2