def test_ESLR_inputs(): input_map = dict( args=dict(argstr='%s', ), closingSize=dict(argstr='--closingSize %d', ), environ=dict( nohash=True, usedefault=True, ), high=dict(argstr='--high %d', ), ignore_exception=dict( nohash=True, usedefault=True, ), inputVolume=dict(argstr='--inputVolume %s', ), low=dict(argstr='--low %d', ), numberOfThreads=dict(argstr='--numberOfThreads %d', ), openingSize=dict(argstr='--openingSize %d', ), outputVolume=dict( argstr='--outputVolume %s', hash_files=False, ), preserveOutside=dict(argstr='--preserveOutside ', ), safetySize=dict(argstr='--safetySize %d', ), terminal_output=dict(nohash=True, ), ) inputs = ESLR.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_ESLR_outputs(): output_map = dict(outputVolume=dict(), ) outputs = ESLR.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_ESLR_inputs(): input_map = dict(args=dict(argstr='%s', ), closingSize=dict(argstr='--closingSize %d', ), environ=dict(nohash=True, usedefault=True, ), high=dict(argstr='--high %d', ), ignore_exception=dict(nohash=True, usedefault=True, ), inputVolume=dict(argstr='--inputVolume %s', ), low=dict(argstr='--low %d', ), numberOfThreads=dict(argstr='--numberOfThreads %d', ), openingSize=dict(argstr='--openingSize %d', ), outputVolume=dict(argstr='--outputVolume %s', hash_files=False, ), preserveOutside=dict(argstr='--preserveOutside ', ), safetySize=dict(argstr='--safetySize %d', ), terminal_output=dict(nohash=True, ), ) inputs = ESLR.input_spec() for key, metadata in input_map.items(): for metakey, value in metadata.items(): yield assert_equal, getattr(inputs.traits()[key], metakey), value