# 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(alt_data_file=dict(argstr='-a %s',
    ),
    alt_skeleton=dict(argstr='-s %s',
    ),
    args=dict(argstr='%s',
    ),
    data_file=dict(),
    distance_map=dict(),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(argstr='-i %s',
    mandatory=True,
    ),
    output_type=dict(),
    project_data=dict(argstr='-p %.3f %s %s %s %s',
    requires=['threshold', 'distance_map', 'data_file'],
    ),
    projected_data=dict(),
    search_mask_file=dict(xor=['use_cingulum_mask'],
    ),
    skeleton_file=dict(argstr='-o %s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    threshold=dict(),
    use_cingulum_mask=dict(usedefault=True,
    xor=['search_mask_file'],
    ),
    )
    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

