# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.spm.model import EstimateModel
def test_EstimateModel_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    paths=dict(),
    spm_mat_file=dict(copyfile=True,
    mandatory=True,
    field='spmmat',
    ),
    use_v8struct=dict(min_ver='8',
    usedefault=True,
    ),
    use_mcr=dict(),
    estimation_method=dict(field='method',
    mandatory=True,
    ),
    flags=dict(),
    mfile=dict(usedefault=True,
    ),
    matlab_cmd=dict(),
    )
    inputs = EstimateModel.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_EstimateModel_outputs():
    output_map = dict(residual_image=dict(),
    spm_mat_file=dict(),
    RPVimage=dict(),
    mask_image=dict(),
    beta_images=dict(),
    )
    outputs = EstimateModel.output_spec()

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