# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.slicer.quantification.changequantification import IntensityDifferenceMetric
def test_IntensityDifferenceMetric_inputs():
    input_map = dict(followupVolume=dict(position=-2,
    argstr='%s',
    ),
    outputVolume=dict(position=-1,
    hash_files=False,
    argstr='%s',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    baselineVolume=dict(position=-4,
    argstr='%s',
    ),
    args=dict(argstr='%s',
    ),
    changingBandSize=dict(argstr='--changingBandSize %d',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    reportFileName=dict(hash_files=False,
    argstr='--reportFileName %s',
    ),
    baselineSegmentationVolume=dict(position=-3,
    argstr='%s',
    ),
    sensitivityThreshold=dict(argstr='--sensitivityThreshold %f',
    ),
    )
    inputs = IntensityDifferenceMetric.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_IntensityDifferenceMetric_outputs():
    output_map = dict(outputVolume=dict(position=-1,
    ),
    reportFileName=dict(),
    )
    outputs = IntensityDifferenceMetric.output_spec()

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