# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.freesurfer.preprocess import Smooth
def test_Smooth_inputs():
    input_map = dict(proj_frac_avg=dict(xor=['proj_frac'],
    argstr='--projfrac-avg %.2f %.2f %.2f',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    reg_file=dict(mandatory=True,
    argstr='--reg %s',
    ),
    num_iters=dict(mandatory=True,
    xor=['surface_fwhm'],
    argstr='--niters %d',
    ),
    vol_fwhm=dict(argstr='--vol-fwhm %f',
    ),
    args=dict(argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(mandatory=True,
    argstr='--i %s',
    ),
    subjects_dir=dict(),
    surface_fwhm=dict(mandatory=True,
    xor=['num_iters'],
    argstr='--fwhm %f',
    requires=['reg_file'],
    ),
    proj_frac=dict(xor=['proj_frac_avg'],
    argstr='--projfrac %s',
    ),
    smoothed_file=dict(genfile=True,
    argstr='--o %s',
    ),
    )
    inputs = Smooth.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_Smooth_outputs():
    output_map = dict(smoothed_file=dict(),
    )
    outputs = Smooth.output_spec()

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