def modules_with_test():
    '''
    Return a list of callable functions that have a ``test=`` flag.

    CLI Example:

    (results trimmed for brevity)

    .. code-block:: bash

        salt myminion baredoc.modules_with_test

        myminion:
            ----------
            - boto_elb.set_instances
            - netconfig.managed
            - netconfig.replace_pattern
            - pkg.install
            - salt.state
            - state.high
            - state.highstate

    '''
    mods = modules_and_args()
    testmods = []
    for module_name, module_args in six.iteritems(mods):
        if 'test' in module_args:
            testmods.append(module_name)

    return sorted(testmods)
def modules_with_test ( ) : mods = modules_and_args ( ) testmods = [ ] for module_name , module_args in six . iteritems ( mods ) : if 'test' in module_args : testmods . append ( module_name ) return sorted ( testmods )
Return a list of callable functions that have a ``test=`` flag.

    CLI Example:

    (results trimmed for brevity)

    .. code-block:: bash

        salt myminion baredoc.modules_with_test

        myminion:
            ----------
            - boto_elb.set_instances
            - netconfig.managed
            - netconfig.replace_pattern
            - pkg.install
            - salt.state
            - state.high
            - state.highstate