def find_assertions(action_name=None): res = [] actions = act.call_set(action_name,im.module.actions) if action_name else im.module.actions.keys() for actname in actions: action = im.module.actions[actname] for a in action.iter_subactions(): if isinstance(a,act.AssertAction) or isinstance(a,act.Ranking): res.append(a) return res
def find_assertions(action_name=None): res = [] actions = act.call_set(action_name,im.module.actions) if action_name else im.module.actions.keys() for actname in actions: action = im.module.actions[actname] for a in action.iter_subactions(): if isinstance(a,act.AssertAction): res.append(a) return res