def test_HammerAttributeCreator_inputs(): input_map = dict(Scale=dict(argstr='--Scale %d', ), Strength=dict(argstr='--Strength %f', ), args=dict(argstr='%s', ), environ=dict(nohash=True, usedefault=True, ), ignore_exception=dict(nohash=True, usedefault=True, ), inputCSFVolume=dict(argstr='--inputCSFVolume %s', ), inputGMVolume=dict(argstr='--inputGMVolume %s', ), inputWMVolume=dict(argstr='--inputWMVolume %s', ), outputVolumeBase=dict(argstr='--outputVolumeBase %s', ), terminal_output=dict(nohash=True, ), ) inputs = HammerAttributeCreator.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_HammerAttributeCreator_outputs(): output_map = dict() outputs = HammerAttributeCreator.output_spec() for key, metadata in output_map.items(): for metakey, value in metadata.items(): yield assert_equal, getattr(outputs.traits()[key], metakey), value
def test_HammerAttributeCreator_inputs(): input_map = dict( Scale=dict(argstr='--Scale %d', ), Strength=dict(argstr='--Strength %f', ), args=dict(argstr='%s', ), environ=dict( nohash=True, usedefault=True, ), ignore_exception=dict( nohash=True, usedefault=True, ), inputCSFVolume=dict(argstr='--inputCSFVolume %s', ), inputGMVolume=dict(argstr='--inputGMVolume %s', ), inputWMVolume=dict(argstr='--inputWMVolume %s', ), outputVolumeBase=dict(argstr='--outputVolumeBase %s', ), terminal_output=dict(nohash=True, ), ) inputs = HammerAttributeCreator.input_spec() for key, metadata in input_map.items(): for metakey, value in metadata.items(): yield assert_equal, getattr(inputs.traits()[key], metakey), value