# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.spm.model import EstimateContrast
def test_EstimateContrast_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_derivs=dict(xor=['group_contrast'],
    ),
    use_mcr=dict(),
    residual_image=dict(copyfile=False,
    mandatory=True,
    ),
    beta_images=dict(copyfile=False,
    mandatory=True,
    ),
    mfile=dict(usedefault=True,
    ),
    contrasts=dict(mandatory=True,
    ),
    matlab_cmd=dict(),
    group_contrast=dict(xor=['use_derivs'],
    ),
    )
    inputs = EstimateContrast.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_EstimateContrast_outputs():
    output_map = dict(spm_mat_file=dict(),
    spmT_images=dict(),
    ess_images=dict(),
    spmF_images=dict(),
    con_images=dict(),
    )
    outputs = EstimateContrast.output_spec()

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