def test_SliceTimer_inputs(): input_map = dict(ignore_exception=dict(nohash=True, usedefault=True, ), index_dir=dict(argstr='--down', ), args=dict(argstr='%s', ), out_file=dict(argstr='--out=%s', hash_files=False, genfile=True, ), custom_timings=dict(argstr='--tcustom=%s', ), time_repetition=dict(argstr='--repeat=%f', ), slice_direction=dict(argstr='--direction=%d', ), custom_order=dict(argstr='--ocustom=%s', ), terminal_output=dict(mandatory=True, nohash=True, ), environ=dict(nohash=True, usedefault=True, ), in_file=dict(position=0, mandatory=True, argstr='--in=%s', ), global_shift=dict(argstr='--tglobal', ), output_type=dict(), interleaved=dict(argstr='--odd', ), ) inputs = SliceTimer.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_SliceTimer_inputs(): input_map = dict( args=dict(argstr='%s', ), custom_order=dict(argstr='--ocustom=%s', ), custom_timings=dict(argstr='--tcustom=%s', ), environ=dict( nohash=True, usedefault=True, ), global_shift=dict(argstr='--tglobal', ), ignore_exception=dict( nohash=True, usedefault=True, ), in_file=dict( argstr='--in=%s', mandatory=True, position=0, ), index_dir=dict(argstr='--down', ), interleaved=dict(argstr='--odd', ), out_file=dict( argstr='--out=%s', genfile=True, hash_files=False, ), output_type=dict(), slice_direction=dict(argstr='--direction=%d', ), terminal_output=dict( mandatory=True, nohash=True, ), time_repetition=dict(argstr='--repeat=%f', ), ) inputs = SliceTimer.input_spec() for key, metadata in input_map.items(): for metakey, value in metadata.items(): yield assert_equal, getattr(inputs.traits()[key], metakey), value