|
| 1 | +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT |
| 2 | +from __future__ import unicode_literals |
| 3 | +from ..preprocess import TSmooth |
| 4 | + |
| 5 | + |
| 6 | +def test_TSmooth_inputs(): |
| 7 | + input_map = dict( |
| 8 | + adaptive=dict(argstr='-adaptive %d', ), |
| 9 | + args=dict(argstr='%s', ), |
| 10 | + blackman=dict(argstr='-blackman %d', ), |
| 11 | + custom=dict(argstr='-custom %s', ), |
| 12 | + datum=dict(argstr='-datum %s', ), |
| 13 | + environ=dict( |
| 14 | + nohash=True, |
| 15 | + usedefault=True, |
| 16 | + ), |
| 17 | + hamming=dict(argstr='-hamming %d', ), |
| 18 | + in_file=dict( |
| 19 | + argstr='%s', |
| 20 | + copyfile=False, |
| 21 | + mandatory=True, |
| 22 | + position=-1, |
| 23 | + ), |
| 24 | + lin=dict(argstr='-lin', ), |
| 25 | + lin3=dict(argstr='-3lin %d', ), |
| 26 | + med=dict(argstr='-med', ), |
| 27 | + num_threads=dict( |
| 28 | + nohash=True, |
| 29 | + usedefault=True, |
| 30 | + ), |
| 31 | + osf=dict(argstr='-osf', ), |
| 32 | + out_file=dict( |
| 33 | + argstr='-prefix %s', |
| 34 | + genfile=True, |
| 35 | + name_source='in_file', |
| 36 | + name_template='%s_smooth', |
| 37 | + ), |
| 38 | + outputtype=dict(), |
| 39 | + ) |
| 40 | + inputs = TSmooth.input_spec() |
| 41 | + |
| 42 | + for key, metadata in list(input_map.items()): |
| 43 | + for metakey, value in list(metadata.items()): |
| 44 | + assert getattr(inputs.traits()[key], metakey) == value |
| 45 | +def test_TSmooth_outputs(): |
| 46 | + output_map = dict(out_file=dict(), ) |
| 47 | + outputs = TSmooth.output_spec() |
| 48 | + |
| 49 | + for key, metadata in list(output_map.items()): |
| 50 | + for metakey, value in list(metadata.items()): |
| 51 | + assert getattr(outputs.traits()[key], metakey) == value |
0 commit comments