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