We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5f2983 commit c2ab8cbCopy full SHA for c2ab8cb
test/test_actions.py
@@ -82,6 +82,16 @@ def testShowActionNoType(self):
82
self.assertRaisesMessage(ValueError, action.handle,
83
'No type specified')
84
85
+ def testShowActionBadNumber(self):
86
+ action = ShowAction(self.client)
87
+ self.assertRaises(ValueError, action.handle)
88
+ self.form.value.append(MiniFieldStorage('@number', 'A'))
89
+ self.form.value.append(MiniFieldStorage('@type', 'issue'))
90
+ with self.assertRaises(SeriousError) as ctx:
91
+ action.handle()
92
+ self.assertEqual('"A" is not an ID (issue ID required)',
93
+ ctx.exception.args[0])
94
+
95
class RetireActionTestCase(ActionTestCase):
96
def testRetireAction(self):
97
self.client.db.security.hasPermission = true
0 commit comments