# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.spm.model import Level1Design
def test_Level1Design_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    paths=dict(),
    global_intensity_normalization=dict(field='global',
    ),
    mask_image=dict(field='mask',
    ),
    mask_threshold=dict(usedefault=True,
    ),
    session_info=dict(field='sess',
    mandatory=True,
    ),
    microtime_resolution=dict(field='timing.fmri_t',
    ),
    use_v8struct=dict(min_ver='8',
    usedefault=True,
    ),
    use_mcr=dict(),
    interscan_interval=dict(field='timing.RT',
    mandatory=True,
    ),
    timing_units=dict(field='timing.units',
    mandatory=True,
    ),
    factor_info=dict(field='fact',
    ),
    volterra_expansion_order=dict(field='volt',
    ),
    bases=dict(field='bases',
    mandatory=True,
    ),
    mfile=dict(usedefault=True,
    ),
    model_serial_correlations=dict(field='cvi',
    ),
    microtime_onset=dict(field='timing.fmri_t0',
    ),
    matlab_cmd=dict(),
    spm_mat_dir=dict(field='dir',
    ),
    )
    inputs = Level1Design.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_Level1Design_outputs():
    output_map = dict(spm_mat_file=dict(),
    )
    outputs = Level1Design.output_spec()

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