text: # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
  from ..specialized import BRAINSROIAuto
  
  
  def test_BRAINSROIAuto_inputs():
      input_map = dict(
          ROIAutoDilateSize=dict(argstr='--ROIAutoDilateSize %f', ),
          args=dict(argstr='%s', ),
          closingSize=dict(argstr='--closingSize %f', ),
          environ=dict(
              nohash=True,
              usedefault=True,
          ),
          inputVolume=dict(
              argstr='--inputVolume %s',
              extensions=None,
          ),
          numberOfThreads=dict(argstr='--numberOfThreads %d', ),
          otsuPercentileThreshold=dict(argstr='--otsuPercentileThreshold %f', ),
          outputClippedVolumeROI=dict(
              argstr='--outputClippedVolumeROI %s',
              hash_files=False,
          ),
          outputROIMaskVolume=dict(
              argstr='--outputROIMaskVolume %s',
              hash_files=False,
          ),
          outputVolumePixelType=dict(argstr='--outputVolumePixelType %s', ),
          thresholdCorrectionFactor=dict(
              argstr='--thresholdCorrectionFactor %f', ),
      )
      inputs = BRAINSROIAuto.input_spec()
  
      for key, metadata in list(input_map.items()):
          for metakey, value in list(metadata.items()):
              assert getattr(inputs.traits()[key], metakey) == value
  def test_BRAINSROIAuto_outputs():
      output_map = dict(
          outputClippedVolumeROI=dict(extensions=None, ),
          outputROIMaskVolume=dict(extensions=None, ),
      )
      outputs = BRAINSROIAuto.output_spec()
  
      for key, metadata in list(output_map.items()):
          for metakey, value in list(metadata.items()):
              assert getattr(outputs.traits()[key], metakey) == value
  