# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.model import SmoothEstimate

def test_SmoothEstimate_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    dof=dict(argstr='--dof=%d',
    mandatory=True,
    xor=['zstat_file'],
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    mask_file=dict(argstr='--mask=%s',
    mandatory=True,
    ),
    output_type=dict(),
    residual_fit_file=dict(argstr='--res=%s',
    requires=['dof'],
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    zstat_file=dict(argstr='--zstat=%s',
    xor=['dof'],
    ),
    )
    inputs = SmoothEstimate.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_SmoothEstimate_outputs():
    output_map = dict(dlh=dict(),
    resels=dict(),
    volume=dict(),
    )
    outputs = SmoothEstimate.output_spec()

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

