def audit(data_list, tags, verbose=False):
    __data__ = {}
    for data in data_list:
        _merge_yaml(__data__, data)
    __tags__ = _get_tags(__data__)

    log.trace('service audit __data__:')
    log.trace(__data__)
    log.trace('service audit __tags__:')
    log.trace(__tags__)

    ret = {'Success': [], 'Failure': []}

    for tag in __tags__:
        if fnmatch.fnmatch(tag, tags):
            passed = True
            for tag_data in __tags__[tag]:
                name = tag_data['name']
                match_output = tag_data['match_output']

                salt_ret = __salt__['sysctl.get'](name)
                if not salt_ret:
                    passed = False
                if str(salt_ret).startswith('error'):
                    passed = False
                if str(salt_ret) != str(match_output):
                    passed = False
            if passed:
                ret['Success'].append(tag_data)
            else:
                ret['Failure'].append(tag_data)

    if not verbose:
        failure = []
        success = []

        tags_descriptions = set()

        for tag_data in ret['Failure']:
            tag = tag_data['tag']
            description = tag_data.get('description')
            if (tag, description) not in tags_descriptions:
                failure.append({tag: description})
                tags_descriptions.add((tag, description))

        tags_descriptions = set()

        for tag_data in ret['Success']:
            tag = tag_data['tag']
            description = tag_data.get('description')
            if (tag, description) not in tags_descriptions:
                success.append({tag: description})
                tags_descriptions.add((tag, description))

        ret['Success'] = success
        ret['Failure'] = failure

    return ret
Slug is read-only and cannot be changed. Assert the slug is unchanged.
dataset/ETHPy150Open HubbleStack/Nova/hubblestack_nova/sysctl.py/audit--crossover with--dataset/ETHPy150Open memex-explorer/memex-explorer/source/apps/crawl_space/tests/test_rest_crawl.py/TestCrawlREST.test_change_slug_fails