def test_AverageImages_outputs(): output_map = dict(output_average_image=dict(), ) outputs = AverageImages.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_AverageImages_inputs(): input_map = dict( args=dict(argstr='%s', ), dimension=dict( argstr='%d', mandatory=True, position=0, ), environ=dict( nohash=True, usedefault=True, ), ignore_exception=dict( nohash=True, usedefault=True, ), images=dict( argstr='%s', mandatory=True, position=3, ), normalize=dict( argstr='%d', mandatory=True, position=2, ), num_threads=dict( nohash=True, usedefault=True, ), output_average_image=dict( argstr='%s', hash_files=False, position=1, usedefault=True, ), terminal_output=dict(nohash=True, ), ) inputs = AverageImages.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_AverageImages_inputs(): input_map = dict(args=dict(argstr='%s', ), dimension=dict(argstr='%d', mandatory=True, position=0, ), environ=dict(nohash=True, usedefault=True, ), ignore_exception=dict(nohash=True, usedefault=True, ), images=dict(argstr='%s', mandatory=True, position=3, ), normalize=dict(argstr='%d', mandatory=True, position=2, ), num_threads=dict(nohash=True, usedefault=True, ), output_average_image=dict(argstr='%s', hash_files=False, position=1, usedefault=True, ), terminal_output=dict(mandatory=True, nohash=True, ), ) inputs = AverageImages.input_spec() for key, metadata in input_map.items(): for metakey, value in metadata.items(): yield assert_equal, getattr(inputs.traits()[key], metakey), value