# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.model import Randomise
def test_Randomise_inputs():
    input_map = dict(one_sample_group_mean=dict(argstr='-1',
    ),
    vox_p_values=dict(argstr='-x',
    ),
    show_total_perms=dict(argstr='-q',
    ),
    tfce2D=dict(argstr='--T2',
    ),
    tfce_H=dict(argstr='--tfce_H=%.2f',
    ),
    p_vec_n_dist_files=dict(argstr='-P',
    ),
    cm_thresh=dict(argstr='-C %.2f',
    ),
    f_only=dict(argstr='--f_only',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(position=0,
    mandatory=True,
    argstr='-i %s',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    f_cm_thresh=dict(argstr='-S %.2f',
    ),
    tfce=dict(argstr='-T',
    ),
    tfce_E=dict(argstr='--tfce_E=%.2f',
    ),
    args=dict(argstr='%s',
    ),
    tfce_C=dict(argstr='--tfce_C=%.2f',
    ),
    raw_stats_imgs=dict(argstr='-R',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    var_smooth=dict(argstr='-v %d',
    ),
    design_mat=dict(position=2,
    argstr='-d %s',
    ),
    tcon=dict(position=3,
    argstr='-t %s',
    ),
    show_info_parallel_mode=dict(argstr='-Q',
    ),
    base_name=dict(position=1,
    usedefault=True,
    argstr='-o "%s"',
    ),
    f_c_thresh=dict(argstr='-F %.2f',
    ),
    num_perm=dict(argstr='-n %d',
    ),
    mask=dict(argstr='-m %s',
    ),
    c_thresh=dict(argstr='-c %.2f',
    ),
    x_block_labels=dict(argstr='-e %s',
    ),
    seed=dict(argstr='--seed=%d',
    ),
    demean=dict(argstr='-D',
    ),
    output_type=dict(),
    fcon=dict(argstr='-f %s',
    ),
    )
    inputs = Randomise.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
def test_Randomise_outputs():
    output_map = dict(tstat_files=dict(),
    t_p_files=dict(),
    f_p_files=dict(),
    f_corrected_p_files=dict(),
    t_corrected_p_files=dict(),
    fstat_files=dict(),
    )
    outputs = Randomise.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
