# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..registration import AffSymTensor3DVol


def test_AffSymTensor3DVol_inputs():
    input_map = dict(
        args=dict(argstr="%s",),
        deformation=dict(argstr="-deformation %g %g %g %g %g %g", xor=["transform"],),
        environ=dict(nohash=True, usedefault=True,),
        euler=dict(argstr="-euler %g %g %g", xor=["transform"],),
        in_file=dict(argstr="-in %s", extensions=None, mandatory=True,),
        interpolation=dict(argstr="-interp %s", usedefault=True,),
        out_file=dict(
            argstr="-out %s",
            extensions=None,
            keep_extension=True,
            name_source="in_file",
            name_template="%s_affxfmd",
        ),
        reorient=dict(argstr="-reorient %s", usedefault=True,),
        target=dict(argstr="-target %s", extensions=None, xor=["transform"],),
        transform=dict(
            argstr="-trans %s",
            extensions=None,
            xor=["target", "translation", "euler", "deformation"],
        ),
        translation=dict(argstr="-translation %g %g %g", xor=["transform"],),
    )
    inputs = AffSymTensor3DVol.input_spec()

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


def test_AffSymTensor3DVol_outputs():
    output_map = dict(out_file=dict(extensions=None,),)
    outputs = AffSymTensor3DVol.output_spec()

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