# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.algorithms.modelgen import SpecifySparseModel
def test_SpecifySparseModel_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    input_units=dict(mandatory=True,
    ),
    high_pass_filter_cutoff=dict(mandatory=True,
    ),
    outlier_files=dict(copyfile=False,
    ),
    scale_regressors=dict(usedefault=True,
    ),
    model_hrf=dict(),
    scan_onset=dict(usedefault=True,
    ),
    functional_runs=dict(copyfile=False,
    mandatory=True,
    ),
    time_repetition=dict(mandatory=True,
    ),
    volumes_in_cluster=dict(usedefault=True,
    ),
    save_plot=dict(),
    realignment_parameters=dict(copyfile=False,
    ),
    stimuli_as_impulses=dict(usedefault=True,
    ),
    use_temporal_deriv=dict(requires=['model_hrf'],
    ),
    time_acquisition=dict(mandatory=True,
    ),
    subject_info=dict(mandatory=True,
    xor=['event_files'],
    ),
    event_files=dict(mandatory=True,
    xor=['subject_info'],
    ),
    )
    inputs = SpecifySparseModel.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_SpecifySparseModel_outputs():
    output_map = dict(sparse_png_file=dict(),
    sparse_svg_file=dict(),
    session_info=dict(),
    )
    outputs = SpecifySparseModel.output_spec()

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