# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..convert import Trackvis2Camino


def test_Trackvis2Camino_inputs():
    input_map = dict(
        append_file=dict(argstr="-a %s", extensions=None, position=2,),
        args=dict(argstr="%s",),
        environ=dict(nohash=True, usedefault=True,),
        in_file=dict(argstr="-i %s", extensions=None, mandatory=True, position=1,),
        out_file=dict(argstr="-o %s", extensions=None, genfile=True, position=2,),
    )
    inputs = Trackvis2Camino.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_Trackvis2Camino_outputs():
    output_map = dict(camino=dict(extensions=None,),)
    outputs = Trackvis2Camino.output_spec()

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