|
| 1 | +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT |
| 2 | +from ....testing import assert_equal |
| 3 | +from ..preprocess import BlurToFWHM |
| 4 | + |
| 5 | + |
| 6 | +def test_BlurToFWHM_inputs(): |
| 7 | + input_map = dict(args=dict(argstr='%s', |
| 8 | + ), |
| 9 | + automask=dict(argstr='-automask', |
| 10 | + ), |
| 11 | + blurmaster=dict(argstr='-blurmaster %s', |
| 12 | + ), |
| 13 | + environ=dict(nohash=True, |
| 14 | + usedefault=True, |
| 15 | + ), |
| 16 | + fwhm=dict(argstr='-FWHM %f', |
| 17 | + ), |
| 18 | + fwhmxy=dict(argstr='-FWHMxy %f', |
| 19 | + ), |
| 20 | + ignore_exception=dict(nohash=True, |
| 21 | + usedefault=True, |
| 22 | + ), |
| 23 | + in_file=dict(argstr='-input %s', |
| 24 | + mandatory=True, |
| 25 | + ), |
| 26 | + mask=dict(argstr='-blurmaster %s', |
| 27 | + ), |
| 28 | + out_file=dict(argstr='-prefix %s', |
| 29 | + name_source=['in_file'], |
| 30 | + name_template='%s_afni', |
| 31 | + ), |
| 32 | + outputtype=dict(), |
| 33 | + terminal_output=dict(nohash=True, |
| 34 | + ), |
| 35 | + ) |
| 36 | + inputs = BlurToFWHM.input_spec() |
| 37 | + |
| 38 | + for key, metadata in list(input_map.items()): |
| 39 | + for metakey, value in list(metadata.items()): |
| 40 | + yield assert_equal, getattr(inputs.traits()[key], metakey), value |
| 41 | + |
| 42 | + |
| 43 | +def test_BlurToFWHM_outputs(): |
| 44 | + output_map = dict(out_file=dict(), |
| 45 | + ) |
| 46 | + outputs = BlurToFWHM.output_spec() |
| 47 | + |
| 48 | + for key, metadata in list(output_map.items()): |
| 49 | + for metakey, value in list(metadata.items()): |
| 50 | + yield assert_equal, getattr(outputs.traits()[key], metakey), value |
0 commit comments