# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.dti import DistanceMap
def test_DistanceMap_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    invert_input=dict(argstr='--invert',
    ),
    args=dict(argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(mandatory=True,
    argstr='--in=%s',
    ),
    mask_file=dict(argstr='--mask=%s',
    ),
    output_type=dict(),
    distance_map=dict(argstr='--out=%s',
    hash_files=False,
    genfile=True,
    ),
    local_max_file=dict(hash_files=False,
    argstr='--localmax=%s',
    ),
    )
    inputs = DistanceMap.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_DistanceMap_outputs():
    output_map = dict(distance_map=dict(),
    local_max_file=dict(),
    )
    outputs = DistanceMap.output_spec()

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