# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.slicer.legacy.registration import MultiResolutionAffineRegistration
def test_MultiResolutionAffineRegistration_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    numIterations=dict(argstr='--numIterations %d',
    ),
    fixedImageMask=dict(argstr='--fixedImageMask %s',
    ),
    args=dict(argstr='%s',
    ),
    saveTransform=dict(hash_files=False,
    argstr='--saveTransform %s',
    ),
    stepTolerance=dict(argstr='--stepTolerance %f',
    ),
    resampledImage=dict(hash_files=False,
    argstr='--resampledImage %s',
    ),
    movingImage=dict(position=-1,
    argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    metricTolerance=dict(argstr='--metricTolerance %f',
    ),
    stepSize=dict(argstr='--stepSize %f',
    ),
    numLineIterations=dict(argstr='--numLineIterations %d',
    ),
    fixedImageROI=dict(argstr='--fixedImageROI %s',
    ),
    fixedImage=dict(position=-2,
    argstr='%s',
    ),
    )
    inputs = MultiResolutionAffineRegistration.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_MultiResolutionAffineRegistration_outputs():
    output_map = dict(resampledImage=dict(),
    saveTransform=dict(),
    )
    outputs = MultiResolutionAffineRegistration.output_spec()

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