Skip to content

Commit 648c6eb

Browse files
author
Ralf Schlatterbeck
committed
- Add regression test for -c option to mailgw
.-- bug in issue2550697 wasn't noticed, it would be now.
1 parent d36be2c commit 648c6eb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/test_mailgw.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,20 @@ def testOptionsMulti(self):
261261
self.assertEqual(self.db.issue.get(nodeid, 'status'), '3')
262262
self.assertEqual(self.db.issue.get(nodeid, 'priority'), '1')
263263

264+
def testOptionClass(self):
265+
nodeid = self._handle_mail('''Content-Type: text/plain;
266+
charset="iso-8859-1"
267+
From: Chef <[email protected]>
268+
269+
Message-Id: <dummy_test_message_id>
270+
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+
264278
def doNewIssue(self):
265279
nodeid = self._handle_mail('''Content-Type: text/plain;
266280
charset="iso-8859-1"

0 commit comments

Comments
 (0)