fix lint and reference to an undefined variable in the new unit tests
@@ -607,7 +607,7 @@ class ActionsControllerTestCase(FunctionalTest, APIControllerWithIncludeAndExclu
get_resp = self.__do_get_actions_by_url_parameter('name', action_name)
self.assertEqual(get_resp.status_int, 200)
self.assertEqual(self.__get_action_id_and_name(get_resp)[0], action_id)
- self.assertEqual(get_resp.json['ref'], ref)
+ self.assertEqual(self.__get_action_id_and_name(get_resp)[1], action_name)
self.__do_delete(action_id)
@mock.patch.object(action_validator, 'validate_action', mock.MagicMock(
@@ -616,8 +616,8 @@ class ActionsControllerTestCase(FunctionalTest, APIControllerWithIncludeAndExclu
action_id, action_tags = self.__get_action_id_and_tags(self.__do_post(ACTION_1))
get_resp = self.__do_get_actions_by_url_parameter('tags', action_tags[0]['value'])
self.assertEqual(get_resp.status_int, 200)
+ self.assertEqual(self.__get_action_id_and_tags(get_resp)[0], action_id)
self.assertEqual(self.__get_action_id_and_tags(get_resp)[1], action_tags)
- self.assertEqual(get_resp.json['ref'], ref)
self.__do_delete(action_id)
# TODO: Re-enable those tests after we ensure DB is flushed in setUp
