|
| 1 | +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT |
| 2 | +from __future__ import unicode_literals |
| 3 | +from ..quickshear import Quickshear |
| 4 | + |
| 5 | + |
| 6 | +def test_Quickshear_inputs(): |
| 7 | + input_map = dict(args=dict(argstr='%s', |
| 8 | + ), |
| 9 | + buff=dict(argstr='%d', |
| 10 | + position=4, |
| 11 | + ), |
| 12 | + environ=dict(nohash=True, |
| 13 | + usedefault=True, |
| 14 | + ), |
| 15 | + ignore_exception=dict(nohash=True, |
| 16 | + usedefault=True, |
| 17 | + ), |
| 18 | + in_file=dict(argstr='%s', |
| 19 | + mandatory=True, |
| 20 | + position=1, |
| 21 | + ), |
| 22 | + mask_file=dict(argstr='%s', |
| 23 | + mandatory=True, |
| 24 | + position=2, |
| 25 | + ), |
| 26 | + out_file=dict(argstr='%s', |
| 27 | + keep_extension=True, |
| 28 | + name_source='in_file', |
| 29 | + name_template='%s_defaced', |
| 30 | + position=3, |
| 31 | + ), |
| 32 | + terminal_output=dict(nohash=True, |
| 33 | + ), |
| 34 | + ) |
| 35 | + inputs = Quickshear.input_spec() |
| 36 | + |
| 37 | + for key, metadata in list(input_map.items()): |
| 38 | + for metakey, value in list(metadata.items()): |
| 39 | + assert getattr(inputs.traits()[key], metakey) == value |
| 40 | + |
| 41 | + |
| 42 | +def test_Quickshear_outputs(): |
| 43 | + output_map = dict(out_file=dict(), |
| 44 | + ) |
| 45 | + outputs = Quickshear.output_spec() |
| 46 | + |
| 47 | + for key, metadata in list(output_map.items()): |
| 48 | + for metakey, value in list(metadata.items()): |
| 49 | + assert getattr(outputs.traits()[key], metakey) == value |
0 commit comments