|
| 1 | +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT |
| 2 | +from ...testing import assert_equal |
| 3 | +from ..bru2nii import Bru2 |
| 4 | + |
| 5 | + |
| 6 | +def test_Bru2_inputs(): |
| 7 | + input_map = dict(actual_size=dict(argstr='-a', |
| 8 | + ), |
| 9 | + append_protocol_name=dict(argstr='-p', |
| 10 | + ), |
| 11 | + args=dict(argstr='%s', |
| 12 | + ), |
| 13 | + environ=dict(nohash=True, |
| 14 | + usedefault=True, |
| 15 | + ), |
| 16 | + force_conversion=dict(argstr='-f', |
| 17 | + ), |
| 18 | + ignore_exception=dict(nohash=True, |
| 19 | + usedefault=True, |
| 20 | + ), |
| 21 | + input_dir=dict(argstr='%s', |
| 22 | + mandatory=True, |
| 23 | + position=-1, |
| 24 | + ), |
| 25 | + output_filename=dict(argstr='-o %s', |
| 26 | + genfile=True, |
| 27 | + ), |
| 28 | + terminal_output=dict(nohash=True, |
| 29 | + ), |
| 30 | + ) |
| 31 | + inputs = Bru2.input_spec() |
| 32 | + |
| 33 | + for key, metadata in list(input_map.items()): |
| 34 | + for metakey, value in list(metadata.items()): |
| 35 | + yield assert_equal, getattr(inputs.traits()[key], metakey), value |
| 36 | + |
| 37 | + |
| 38 | +def test_Bru2_outputs(): |
| 39 | + output_map = dict(nii_file=dict(), |
| 40 | + ) |
| 41 | + outputs = Bru2.output_spec() |
| 42 | + |
| 43 | + for key, metadata in list(output_map.items()): |
| 44 | + for metakey, value in list(metadata.items()): |
| 45 | + yield assert_equal, getattr(outputs.traits()[key], metakey), value |
0 commit comments