# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from .....testing import assert_equal
from ..brains import fcsv_to_hdf5


def test_fcsv_to_hdf5_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    landmarkGlobPattern=dict(argstr='--landmarkGlobPattern %s',
    ),
    landmarkTypesList=dict(argstr='--landmarkTypesList %s',
    ),
    landmarksInformationFile=dict(argstr='--landmarksInformationFile %s',
    hash_files=False,
    ),
    modelFile=dict(argstr='--modelFile %s',
    hash_files=False,
    ),
    numberOfThreads=dict(argstr='--numberOfThreads %d',
    ),
    terminal_output=dict(nohash=True,
    ),
    versionID=dict(argstr='--versionID %s',
    ),
    )
    inputs = fcsv_to_hdf5.input_spec()

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


def test_fcsv_to_hdf5_outputs():
    output_map = dict(landmarksInformationFile=dict(),
    modelFile=dict(),
    )
    outputs = fcsv_to_hdf5.output_spec()

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