# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.slicer.filtering.n4itkbiasfieldcorrection import N4ITKBiasFieldCorrection
def test_N4ITKBiasFieldCorrection_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    meshresolution=dict(argstr='--meshresolution %s',
    sep=',',
    ),
    weightimage=dict(argstr='--weightimage %s',
    ),
    histogramsharpening=dict(argstr='--histogramsharpening %s',
    sep=',',
    ),
    args=dict(argstr='%s',
    ),
    maskimage=dict(argstr='--maskimage %s',
    ),
    outputbiasfield=dict(hash_files=False,
    argstr='--outputbiasfield %s',
    ),
    convergencethreshold=dict(argstr='--convergencethreshold %f',
    ),
    inputimage=dict(argstr='--inputimage %s',
    ),
    shrinkfactor=dict(argstr='--shrinkfactor %d',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    iterations=dict(argstr='--iterations %s',
    sep=',',
    ),
    bsplineorder=dict(argstr='--bsplineorder %d',
    ),
    splinedistance=dict(argstr='--splinedistance %f',
    ),
    outputimage=dict(hash_files=False,
    argstr='--outputimage %s',
    ),
    )
    inputs = N4ITKBiasFieldCorrection.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_N4ITKBiasFieldCorrection_outputs():
    output_map = dict(outputimage=dict(),
    outputbiasfield=dict(),
    )
    outputs = N4ITKBiasFieldCorrection.output_spec()

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