Looks pretty good. Just, please change the last two tests to something like this:
def test_trigger_nonexistent_leading_action(self):
error = self.assertRaises( ubuntuuitoolkit.ToolkitException, self.test_listitem.trigger_leading_action, 'this_action_does_not_exist')
self.assertEqual(
str(error),
'The requested action not found on leading side')
Looks pretty good. Just, please change the last two tests to something like this:
def test_trigger_ nonexistent_ leading_ action( self):
ubuntuuitoolkit .ToolkitExcepti on,
self.test_ listitem. trigger_ leading_ action,
'this_action_ does_not_ exist') assertEqual(
error = self.assertRaises(
self.
str(error),
'The requested action not found on leading side')