|
| 1 | +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT |
| 2 | +from __future__ import unicode_literals |
| 3 | +from ..utils import GCOR |
| 4 | + |
| 5 | + |
| 6 | +def test_GCOR_inputs(): |
| 7 | + input_map = dict(args=dict(argstr='%s', |
| 8 | + ), |
| 9 | + environ=dict(nohash=True, |
| 10 | + usedefault=True, |
| 11 | + ), |
| 12 | + ignore_exception=dict(nohash=True, |
| 13 | + usedefault=True, |
| 14 | + ), |
| 15 | + in_file=dict(argstr='-input %s', |
| 16 | + copyfile=False, |
| 17 | + mandatory=True, |
| 18 | + position=-1, |
| 19 | + ), |
| 20 | + mask=dict(argstr='-mask %s', |
| 21 | + copyfile=False, |
| 22 | + ), |
| 23 | + nfirst=dict(argstr='-nfirst %d', |
| 24 | + ), |
| 25 | + no_demean=dict(argstr='-no_demean', |
| 26 | + ), |
| 27 | + terminal_output=dict(nohash=True, |
| 28 | + ), |
| 29 | + ) |
| 30 | + inputs = GCOR.input_spec() |
| 31 | + |
| 32 | + for key, metadata in list(input_map.items()): |
| 33 | + for metakey, value in list(metadata.items()): |
| 34 | + assert getattr(inputs.traits()[key], metakey) == value |
| 35 | + |
| 36 | + |
| 37 | +def test_GCOR_outputs(): |
| 38 | + output_map = dict(out=dict(), |
| 39 | + ) |
| 40 | + outputs = GCOR.output_spec() |
| 41 | + |
| 42 | + for key, metadata in list(output_map.items()): |
| 43 | + for metakey, value in list(metadata.items()): |
| 44 | + assert getattr(outputs.traits()[key], metakey) == value |
0 commit comments