<gh_stars>0
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ....testing import assert_equal
from ..cmtk import ROIGen


def test_ROIGen_inputs():
    input_map = dict(LUT_file=dict(xor=[u'use_freesurfer_LUT'],
    ),
    aparc_aseg_file=dict(mandatory=True,
    ),
    freesurfer_dir=dict(requires=[u'use_freesurfer_LUT'],
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    out_dict_file=dict(genfile=True,
    ),
    out_roi_file=dict(genfile=True,
    ),
    use_freesurfer_LUT=dict(xor=[u'LUT_file'],
    ),
    )
    inputs = ROIGen.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_ROIGen_outputs():
    output_map = dict(dict_file=dict(),
    roi_file=dict(),
    )
    outputs = ROIGen.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

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


def test_ROIGen_inputs():
    input_map = dict(LUT_file=dict(xor=[u'use_freesurfer_LUT'],
    ),
    aparc_aseg_file=dict(mandatory=True,
    ),
    freesurfer_dir=dict(requires=[u'use_freesurfer_LUT'],
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    out_dict_file=dict(genfile=True,
    ),
    out_roi_file=dict(genfile=True,
    ),
    use_freesurfer_LUT=dict(xor=[u'LUT_file'],
    ),
    )
    inputs = ROIGen.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_ROIGen_outputs():
    output_map = dict(dict_file=dict(),
    roi_file=dict(),
    )
    outputs = ROIGen.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
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT