# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.c3 import C3dAffineTool
def test_C3dAffineTool_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    args=dict(argstr='%s',
    ),
    fsl2ras=dict(position=4,
    argstr='-fsl2ras',
    ),
    source_file=dict(position=2,
    argstr='-src %s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    reference_file=dict(position=1,
    argstr='-ref %s',
    ),
    transform_file=dict(position=3,
    argstr='%s',
    ),
    itk_transform=dict(position=5,
    hash_files=False,
    argstr='-oitk %s',
    ),
    )
    inputs = C3dAffineTool.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_C3dAffineTool_outputs():
    output_map = dict(itk_transform=dict(),
    )
    outputs = C3dAffineTool.output_spec()

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