|
| 1 | +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT |
| 2 | +from __future__ import unicode_literals |
| 3 | +from ..model import Synthesize |
| 4 | + |
| 5 | + |
| 6 | +def test_Synthesize_inputs(): |
| 7 | + input_map = dict(TR=dict(argstr='-TR %f', |
| 8 | + ), |
| 9 | + args=dict(argstr='%s', |
| 10 | + ), |
| 11 | + cbucket=dict(argstr='-cbucket %s', |
| 12 | + copyfile=False, |
| 13 | + mandatory=True, |
| 14 | + ), |
| 15 | + cenfill=dict(argstr='-cenfill %s', |
| 16 | + ), |
| 17 | + dry_run=dict(argstr='-dry', |
| 18 | + ), |
| 19 | + environ=dict(nohash=True, |
| 20 | + usedefault=True, |
| 21 | + ), |
| 22 | + ignore_exception=dict(nohash=True, |
| 23 | + usedefault=True, |
| 24 | + ), |
| 25 | + matrix=dict(argstr='-matrix %s', |
| 26 | + copyfile=False, |
| 27 | + mandatory=True, |
| 28 | + ), |
| 29 | + out_file=dict(argstr='-prefix %s', |
| 30 | + name_template='syn', |
| 31 | + ), |
| 32 | + outputtype=dict(), |
| 33 | + select=dict(argstr='-select %s', |
| 34 | + mandatory=True, |
| 35 | + ), |
| 36 | + terminal_output=dict(nohash=True, |
| 37 | + ), |
| 38 | + ) |
| 39 | + inputs = Synthesize.input_spec() |
| 40 | + |
| 41 | + for key, metadata in list(input_map.items()): |
| 42 | + for metakey, value in list(metadata.items()): |
| 43 | + assert getattr(inputs.traits()[key], metakey) == value |
| 44 | + |
| 45 | + |
| 46 | +def test_Synthesize_outputs(): |
| 47 | + output_map = dict(out_file=dict(), |
| 48 | + ) |
| 49 | + outputs = Synthesize.output_spec() |
| 50 | + |
| 51 | + for key, metadata in list(output_map.items()): |
| 52 | + for metakey, value in list(metadata.items()): |
| 53 | + assert getattr(outputs.traits()[key], metakey) == value |
0 commit comments