|
| 1 | +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT |
| 2 | +from nipype.testing import assert_equal |
| 3 | +from nipype.algorithms.misc import AddCSVRow |
| 4 | + |
| 5 | +def test_AddCSVRow_inputs(): |
| 6 | + input_map = dict(col_width=dict(mandatory=True, |
| 7 | + usedefault=True, |
| 8 | + ), |
| 9 | + cols=dict(), |
| 10 | + field_headings=dict(mandatory=True, |
| 11 | + ), |
| 12 | + float_dec=dict(mandatory=True, |
| 13 | + usedefault=True, |
| 14 | + ), |
| 15 | + in_file=dict(mandatory=True, |
| 16 | + ), |
| 17 | + new_fields=dict(mandatory=True, |
| 18 | + separator=',', |
| 19 | + ), |
| 20 | + ) |
| 21 | + inputs = AddCSVRow.input_spec() |
| 22 | + |
| 23 | + for key, metadata in input_map.items(): |
| 24 | + for metakey, value in metadata.items(): |
| 25 | + yield assert_equal, getattr(inputs.traits()[key], metakey), value |
| 26 | + |
| 27 | +def test_AddCSVRow_outputs(): |
| 28 | + output_map = dict(csv_file=dict(), |
| 29 | + ) |
| 30 | + outputs = AddCSVRow.output_spec() |
| 31 | + |
| 32 | + for key, metadata in output_map.items(): |
| 33 | + for metakey, value in metadata.items(): |
| 34 | + yield assert_equal, getattr(outputs.traits()[key], metakey), value |
| 35 | + |
0 commit comments