Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 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 | 502a1a8620e6 |
| children | 0bdcb1e7f7ce |
comparison
equal
deleted
inserted
replaced
| 4477:9be284ce56b7 | 4478:e7dcec8c40e9 |
|---|---|
| 259 Hi there! | 259 Hi there! |
| 260 ''', (('-C', 'issue'), ('-S', 'status=chatting'), ('-S', 'priority=critical'))) | 260 ''', (('-C', 'issue'), ('-S', 'status=chatting'), ('-S', 'priority=critical'))) |
| 261 self.assertEqual(self.db.issue.get(nodeid, 'status'), '3') | 261 self.assertEqual(self.db.issue.get(nodeid, 'status'), '3') |
| 262 self.assertEqual(self.db.issue.get(nodeid, 'priority'), '1') | 262 self.assertEqual(self.db.issue.get(nodeid, 'priority'), '1') |
| 263 | 263 |
| 264 def testOptionClass(self): | |
| 265 nodeid = self._handle_mail('''Content-Type: text/plain; | |
| 266 charset="iso-8859-1" | |
| 267 From: Chef <chef@bork.bork.bork> | |
| 268 To: issue_tracker@your.tracker.email.domain.example | |
| 269 Message-Id: <dummy_test_message_id> | |
| 270 Reply-To: chef@bork.bork.bork | |
| 271 Subject: [issue] Testing... | |
| 272 | |
| 273 Hi there! | |
| 274 ''', (('-c', 'issue'),)) | |
| 275 self.assertEqual(self.db.issue.get(nodeid, 'status'), '3') | |
| 276 self.assertEqual(self.db.issue.get(nodeid, 'priority'), '1') | |
| 277 | |
| 264 def doNewIssue(self): | 278 def doNewIssue(self): |
| 265 nodeid = self._handle_mail('''Content-Type: text/plain; | 279 nodeid = self._handle_mail('''Content-Type: text/plain; |
| 266 charset="iso-8859-1" | 280 charset="iso-8859-1" |
| 267 From: Chef <chef@bork.bork.bork> | 281 From: Chef <chef@bork.bork.bork> |
| 268 To: issue_tracker@your.tracker.email.domain.example | 282 To: issue_tracker@your.tracker.email.domain.example |
