# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.dti import DTIFit
def test_DTIFit_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    bvecs=dict(position=3,
    mandatory=True,
    argstr='-r %s',
    ),
    bvals=dict(position=4,
    mandatory=True,
    argstr='-b %s',
    ),
    min_x=dict(argstr='-x %d',
    ),
    min_y=dict(argstr='-y %d',
    ),
    min_z=dict(argstr='-z %d',
    ),
    base_name=dict(position=1,
    usedefault=True,
    argstr='-o %s',
    ),
    args=dict(argstr='%s',
    ),
    mask=dict(position=2,
    mandatory=True,
    argstr='-m %s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    max_x=dict(argstr='-X %d',
    ),
    little_bit=dict(argstr='--littlebit',
    ),
    sse=dict(argstr='--sse',
    ),
    output_type=dict(),
    dwi=dict(position=0,
    mandatory=True,
    argstr='-k %s',
    ),
    max_z=dict(argstr='-Z %d',
    ),
    cni=dict(argstr='-cni %s',
    ),
    save_tensor=dict(argstr='--save_tensor',
    ),
    max_y=dict(argstr='-Y %d',
    ),
    )
    inputs = DTIFit.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_DTIFit_outputs():
    output_map = dict(MD=dict(),
    tensor=dict(),
    V1=dict(),
    MO=dict(),
    S0=dict(),
    FA=dict(),
    V2=dict(),
    V3=dict(),
    L2=dict(),
    L3=dict(),
    L1=dict(),
    )
    outputs = DTIFit.output_spec()

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