# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.slicer.legacy.registration import ExpertAutomatedRegistration
def test_ExpertAutomatedRegistration_inputs():
    input_map = dict(metric=dict(argstr='--metric %s',
    ),
    bsplineSamplingRatio=dict(argstr='--bsplineSamplingRatio %f',
    ),
    movingLandmarks=dict(argstr='--movingLandmarks %s...',
    ),
    expectedRotation=dict(argstr='--expectedRotation %f',
    ),
    registration=dict(argstr='--registration %s',
    ),
    fixedLandmarks=dict(argstr='--fixedLandmarks %s...',
    ),
    affineMaxIterations=dict(argstr='--affineMaxIterations %d',
    ),
    fixedImage=dict(position=-2,
    argstr='%s',
    ),
    rigidMaxIterations=dict(argstr='--rigidMaxIterations %d',
    ),
    expectedOffset=dict(argstr='--expectedOffset %f',
    ),
    affineSamplingRatio=dict(argstr='--affineSamplingRatio %f',
    ),
    expectedScale=dict(argstr='--expectedScale %f',
    ),
    interpolation=dict(argstr='--interpolation %s',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    sampleFromOverlap=dict(argstr='--sampleFromOverlap ',
    ),
    controlPointSpacing=dict(argstr='--controlPointSpacing %d',
    ),
    initialization=dict(argstr='--initialization %s',
    ),
    args=dict(argstr='%s',
    ),
    numberOfThreads=dict(argstr='--numberOfThreads %d',
    ),
    rigidSamplingRatio=dict(argstr='--rigidSamplingRatio %f',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    randomNumberSeed=dict(argstr='--randomNumberSeed %d',
    ),
    resampledImage=dict(hash_files=False,
    argstr='--resampledImage %s',
    ),
    loadTransform=dict(argstr='--loadTransform %s',
    ),
    fixedImageMask=dict(argstr='--fixedImageMask %s',
    ),
    saveTransform=dict(hash_files=False,
    argstr='--saveTransform %s',
    ),
    movingImage=dict(position=-1,
    argstr='%s',
    ),
    bsplineMaxIterations=dict(argstr='--bsplineMaxIterations %d',
    ),
    expectedSkew=dict(argstr='--expectedSkew %f',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    verbosityLevel=dict(argstr='--verbosityLevel %s',
    ),
    minimizeMemory=dict(argstr='--minimizeMemory ',
    ),
    )
    inputs = ExpertAutomatedRegistration.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_ExpertAutomatedRegistration_outputs():
    output_map = dict(resampledImage=dict(),
    saveTransform=dict(),
    )
    outputs = ExpertAutomatedRegistration.output_spec()

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