|
| 1 | +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT |
| 2 | +from nipype.testing import assert_equal |
| 3 | +from nipype.interfaces.fsl.utils import RobustFOV |
| 4 | + |
| 5 | +def test_RobustFOV_inputs(): |
| 6 | + input_map = dict(args=dict(argstr='%s', |
| 7 | + ), |
| 8 | + environ=dict(nohash=True, |
| 9 | + usedefault=True, |
| 10 | + ), |
| 11 | + ignore_exception=dict(nohash=True, |
| 12 | + usedefault=True, |
| 13 | + ), |
| 14 | + in_file=dict(argstr='-i %s', |
| 15 | + mandatory=True, |
| 16 | + position=0, |
| 17 | + ), |
| 18 | + out_roi=dict(argstr='-r %s', |
| 19 | + hash_files=False, |
| 20 | + name_source=['in_file'], |
| 21 | + name_template='%s_ROI', |
| 22 | + ), |
| 23 | + output_type=dict(), |
| 24 | + terminal_output=dict(nohash=True, |
| 25 | + ), |
| 26 | + ) |
| 27 | + inputs = RobustFOV.input_spec() |
| 28 | + |
| 29 | + for key, metadata in input_map.items(): |
| 30 | + for metakey, value in metadata.items(): |
| 31 | + yield assert_equal, getattr(inputs.traits()[key], metakey), value |
| 32 | + |
| 33 | +def test_RobustFOV_outputs(): |
| 34 | + output_map = dict(out_roi=dict(), |
| 35 | + ) |
| 36 | + outputs = RobustFOV.output_spec() |
| 37 | + |
| 38 | + for key, metadata in output_map.items(): |
| 39 | + for metakey, value in metadata.items(): |
| 40 | + yield assert_equal, getattr(outputs.traits()[key], metakey), value |
| 41 | + |
0 commit comments