text: # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
  from __future__ import unicode_literals
  from ..confounds import ACompCor
  
  
  def test_ACompCor_inputs():
      input_map = dict(components_file=dict(usedefault=True,
      ),
      header=dict(),
      ignore_exception=dict(nohash=True,
      usedefault=True,
      ),
      mask_file=dict(),
      num_components=dict(usedefault=True,
      ),
      realigned_file=dict(mandatory=True,
      ),
      regress_poly_degree=dict(usedefault=True,
      ),
      use_regress_poly=dict(usedefault=True,
      ),
      )
      inputs = ACompCor.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_ACompCor_outputs():
      output_map = dict(components_file=dict(),
      )
      outputs = ACompCor.output_spec()
  
      for key, metadata in list(output_map.items()):
          for metakey, value in list(metadata.items()):
              assert getattr(outputs.traits()[key], metakey) == value
  