# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.slicer.legacy.registration import AffineRegistration
def test_AffineRegistration_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    initialtransform=dict(argstr='--initialtransform %s',
    ),
    histogrambins=dict(argstr='--histogrambins %d',
    ),
    translationscale=dict(argstr='--translationscale %f',
    ),
    movingsmoothingfactor=dict(argstr='--movingsmoothingfactor %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',
    ),
    MovingImageFileName=dict(position=-1,
    argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    iterations=dict(argstr='--iterations %d',
    ),
    FixedImageFileName=dict(position=-2,
    argstr='%s',
    ),
    fixedsmoothingfactor=dict(argstr='--fixedsmoothingfactor %d',
    ),
    )
    inputs = AffineRegistration.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_AffineRegistration_outputs():
    output_map = dict(resampledmovingfilename=dict(),
    outputtransform=dict(),
    )
    outputs = AffineRegistration.output_spec()

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