# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.slicer.segmentation.specialized import EMSegmentCommandLine
def test_EMSegmentCommandLine_inputs():
    input_map = dict(verbose=dict(argstr='--verbose ',
    ),
    resultMRMLSceneFileName=dict(hash_files=False,
    argstr='--resultMRMLSceneFileName %s',
    ),
    resultVolumeFileName=dict(hash_files=False,
    argstr='--resultVolumeFileName %s',
    ),
    disableCompression=dict(argstr='--disableCompression ',
    ),
    targetVolumeFileNames=dict(argstr='--targetVolumeFileNames %s...',
    ),
    atlasVolumeFileNames=dict(argstr='--atlasVolumeFileNames %s...',
    ),
    registrationPackage=dict(argstr='--registrationPackage %s',
    ),
    taskPreProcessingSetting=dict(argstr='--taskPreProcessingSetting %s',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    parametersMRMLNodeName=dict(argstr='--parametersMRMLNodeName %s',
    ),
    registrationDeformableType=dict(argstr='--registrationDeformableType %d',
    ),
    args=dict(argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    disableMultithreading=dict(argstr='--disableMultithreading %d',
    ),
    loadTargetCentered=dict(argstr='--loadTargetCentered ',
    ),
    generateEmptyMRMLSceneAndQuit=dict(hash_files=False,
    argstr='--generateEmptyMRMLSceneAndQuit %s',
    ),
    keepTempFiles=dict(argstr='--keepTempFiles ',
    ),
    dontWriteResults=dict(argstr='--dontWriteResults ',
    ),
    registrationAffineType=dict(argstr='--registrationAffineType %d',
    ),
    resultStandardVolumeFileName=dict(argstr='--resultStandardVolumeFileName %s',
    ),
    dontUpdateIntermediateData=dict(argstr='--dontUpdateIntermediateData %d',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    mrmlSceneFileName=dict(argstr='--mrmlSceneFileName %s',
    ),
    intermediateResultsDirectory=dict(argstr='--intermediateResultsDirectory %s',
    ),
    loadAtlasNonCentered=dict(argstr='--loadAtlasNonCentered ',
    ),
    )
    inputs = EMSegmentCommandLine.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_EMSegmentCommandLine_outputs():
    output_map = dict(generateEmptyMRMLSceneAndQuit=dict(),
    resultMRMLSceneFileName=dict(),
    resultVolumeFileName=dict(),
    )
    outputs = EMSegmentCommandLine.output_spec()

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