# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.spm.model import Threshold
def test_Threshold_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    paths=dict(),
    spm_mat_file=dict(copyfile=True,
    mandatory=True,
    ),
    force_activation=dict(usedefault=True,
    ),
    use_v8struct=dict(min_ver='8',
    usedefault=True,
    ),
    use_mcr=dict(),
    use_fwe_correction=dict(usedefault=True,
    ),
    extent_threshold=dict(usedefault=True,
    ),
    contrast_index=dict(mandatory=True,
    ),
    matlab_cmd=dict(),
    extent_fdr_p_threshold=dict(usedefault=True,
    ),
    mfile=dict(usedefault=True,
    ),
    use_topo_fdr=dict(usedefault=True,
    ),
    height_threshold_type=dict(usedefault=True,
    ),
    stat_image=dict(copyfile=False,
    mandatory=True,
    ),
    height_threshold=dict(usedefault=True,
    ),
    )
    inputs = Threshold.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_Threshold_outputs():
    output_map = dict(thresholded_map=dict(),
    n_clusters=dict(),
    activation_forced=dict(),
    pre_topo_n_clusters=dict(),
    pre_topo_fdr_map=dict(),
    cluster_forming_thr=dict(),
    )
    outputs = Threshold.output_spec()

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