# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.slicer.legacy.registration import BSplineDeformableRegistration
def test_BSplineDeformableRegistration_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    initialtransform=dict(argstr='--initialtransform %s',
    ),
    maximumDeformation=dict(argstr='--maximumDeformation %f',
    ),
    gridSize=dict(argstr='--gridSize %d',
    ),
    MovingImageFileName=dict(position=-1,
    argstr='%s',
    ),
    default=dict(argstr='--default %d',
    ),
    histogrambins=dict(argstr='--histogrambins %d',
    ),
    args=dict(argstr='%s',
    ),
    outputtransform=dict(hash_files=False,
    argstr='--outputtransform %s',
    ),
    spatialsamples=dict(argstr='--spatialsamples %d',
    ),
    resampledmovingfilename=dict(hash_files=False,
    argstr='--resampledmovingfilename %s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    iterations=dict(argstr='--iterations %d',
    ),
    outputwarp=dict(hash_files=False,
    argstr='--outputwarp %s',
    ),
    constrain=dict(argstr='--constrain ',
    ),
    FixedImageFileName=dict(position=-2,
    argstr='%s',
    ),
    )
    inputs = BSplineDeformableRegistration.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_BSplineDeformableRegistration_outputs():
    output_map = dict(resampledmovingfilename=dict(),
    outputtransform=dict(),
    outputwarp=dict(),
    )
    outputs = BSplineDeformableRegistration.output_spec()

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