# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.slicer.registration.brainsresample import BRAINSResample
def test_BRAINSResample_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    outputVolume=dict(hash_files=False,
    argstr='--outputVolume %s',
    ),
    pixelType=dict(argstr='--pixelType %s',
    ),
    defaultValue=dict(argstr='--defaultValue %f',
    ),
    args=dict(argstr='%s',
    ),
    deformationVolume=dict(argstr='--deformationVolume %s',
    ),
    interpolationMode=dict(argstr='--interpolationMode %s',
    ),
    gridSpacing=dict(argstr='--gridSpacing %s',
    sep=',',
    ),
    referenceVolume=dict(argstr='--referenceVolume %s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    numberOfThreads=dict(argstr='--numberOfThreads %d',
    ),
    inputVolume=dict(argstr='--inputVolume %s',
    ),
    inverseTransform=dict(argstr='--inverseTransform ',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    warpTransform=dict(argstr='--warpTransform %s',
    ),
    )
    inputs = BRAINSResample.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_BRAINSResample_outputs():
    output_map = dict(outputVolume=dict(),
    )
    outputs = BRAINSResample.output_spec()

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