# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from .....testing import assert_equal
from ..gtract import gtractCoRegAnatomy


def test_gtractCoRegAnatomy_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    borderSize=dict(argstr='--borderSize %d',
    ),
    convergence=dict(argstr='--convergence %f',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    gradientTolerance=dict(argstr='--gradientTolerance %f',
    ),
    gridSize=dict(argstr='--gridSize %s',
    sep=',',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    inputAnatomicalVolume=dict(argstr='--inputAnatomicalVolume %s',
    ),
    inputRigidTransform=dict(argstr='--inputRigidTransform %s',
    ),
    inputVolume=dict(argstr='--inputVolume %s',
    ),
    maxBSplineDisplacement=dict(argstr='--maxBSplineDisplacement %f',
    ),
    maximumStepSize=dict(argstr='--maximumStepSize %f',
    ),
    minimumStepSize=dict(argstr='--minimumStepSize %f',
    ),
    numberOfHistogramBins=dict(argstr='--numberOfHistogramBins %d',
    ),
    numberOfIterations=dict(argstr='--numberOfIterations %d',
    ),
    numberOfSamples=dict(argstr='--numberOfSamples %d',
    ),
    numberOfThreads=dict(argstr='--numberOfThreads %d',
    ),
    outputTransformName=dict(argstr='--outputTransformName %s',
    hash_files=False,
    ),
    relaxationFactor=dict(argstr='--relaxationFactor %f',
    ),
    samplingPercentage=dict(argstr='--samplingPercentage %f',
    ),
    spatialScale=dict(argstr='--spatialScale %d',
    ),
    terminal_output=dict(nohash=True,
    ),
    transformType=dict(argstr='--transformType %s',
    ),
    translationScale=dict(argstr='--translationScale %f',
    ),
    useCenterOfHeadAlign=dict(argstr='--useCenterOfHeadAlign ',
    ),
    useGeometryAlign=dict(argstr='--useGeometryAlign ',
    ),
    useMomentsAlign=dict(argstr='--useMomentsAlign ',
    ),
    vectorIndex=dict(argstr='--vectorIndex %d',
    ),
    )
    inputs = gtractCoRegAnatomy.input_spec()

    for key, metadata in list(input_map.items()):
        for metakey, value in list(metadata.items()):
            yield assert_equal, getattr(inputs.traits()[key], metakey), value


def test_gtractCoRegAnatomy_outputs():
    output_map = dict(outputTransformName=dict(),
    )
    outputs = gtractCoRegAnatomy.output_spec()

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