# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.dti import TractSkeleton
def test_TractSkeleton_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    use_cingulum_mask=dict(xor=['search_mask_file'],
    usedefault=True,
    ),
    skeleton_file=dict(argstr='-o %s',
    ),
    data_file=dict(),
    args=dict(argstr='%s',
    ),
    projected_data=dict(),
    alt_skeleton=dict(argstr='-s %s',
    ),
    alt_data_file=dict(argstr='-a %s',
    ),
    threshold=dict(),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(mandatory=True,
    argstr='-i %s',
    ),
    project_data=dict(requires=['threshold', 'distance_map', 'data_file'],
    argstr='-p %.3f %s %s %s %s',
    ),
    search_mask_file=dict(xor=['use_cingulum_mask'],
    ),
    output_type=dict(),
    distance_map=dict(),
    )
    inputs = TractSkeleton.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
def test_TractSkeleton_outputs():
    output_map = dict(projected_data=dict(),
    skeleton_file=dict(),
    )
    outputs = TractSkeleton.output_spec()

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