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


def test_diffeoScalarVolTask_inputs():
    input_map = dict(
        args=dict(argstr='%s', ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        ignore_exception=dict(
            deprecated='1.0.0',
            nohash=True,
            usedefault=True,
        ),
        in_flip=dict(
            argstr='-flip %s',
            exists=True,
            mandatory=False,
            position=5,
        ),
        in_interp=dict(
            argstr='-interp %s',
            exists=True,
            mandatory=False,
            position=7,
        ),
        in_target=dict(
            argstr='-target %s',
            exists=True,
            mandatory=False,
            position=3,
        ),
        in_type=dict(
            argstr='-type %s',
            exists=True,
            mandatory=False,
            position=6,
        ),
        in_volume=dict(
            argstr='-in %s',
            exists=True,
            mandatory=False,
            position=0,
        ),
        in_vsize=dict(
            argstr='-vsize %s',
            exists=True,
            mandatory=False,
            position=4,
        ),
        in_xfm=dict(
            argstr='-trans %s',
            exists=True,
            mandatory=False,
            position=2,
        ),
        out_file=dict(
            argstr='-out %s',
            name_source='in_volume',
            name_template='%s_diffeoxfmd.nii.gz',
            position=1,
        ),
        terminal_output=dict(
            deprecated='1.0.0',
            nohash=True,
        ),
    )
    inputs = diffeoScalarVolTask.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_diffeoScalarVolTask_outputs():
    output_map = dict(out_file=dict(), )
    outputs = diffeoScalarVolTask.output_spec()

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