'Determine if ancestor_workflows is the same as current_workflows or if ancestor_workflows
is a subset of current_workflows.'

def compare_workflows(self, ancestor_workflows, current_workflows):

    if (len(ancestor_workflows) <= len(current_workflows)):
        for ancestor_workflow_tup in ancestor_workflows:
            ancestor_workflow_dict = ancestor_workflow_tup[1]
            ancestor_workflow_name = ancestor_workflow_dict['name']
            num_ancestor_workflow_steps = len(ancestor_workflow_dict['steps'])
            found_in_current = False
            for current_workflow_tup in current_workflows:
                current_workflow_dict = current_workflow_tup[1]
                if ((current_workflow_dict['name'] == ancestor_workflow_name) and (len(current_workflow_dict['steps']) == num_ancestor_workflow_steps)):
                    found_in_current = True
                    break
            if (not found_in_current):
                return self.NOT_EQUAL_AND_NOT_SUBSET
        if (len(ancestor_workflows) == len(current_workflows)):
            return self.EQUAL
        else:
            return self.SUBSET
    return self.NOT_EQUAL_AND_NOT_SUBSET
