Skip to content

Commit 711e3de

Browse files
committed
add auto test
1 parent 5b4e9bb commit 711e3de

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..utils import NwarpAdjust
4+
5+
6+
def test_NwarpAdjust_inputs():
7+
input_map = dict(
8+
args=dict(argstr='%s', ),
9+
environ=dict(
10+
nohash=True,
11+
usedefault=True,
12+
),
13+
ignore_exception=dict(
14+
deprecated='1.0.0',
15+
nohash=True,
16+
usedefault=True,
17+
),
18+
in_files=dict(
19+
argstr='-source %s',
20+
mandatory=False,
21+
),
22+
out_file=dict(
23+
argstr='-prefix %s',
24+
keep_extension=True,
25+
mandatory=False,
26+
name_source='in_files',
27+
name_template='%s_NwarpAdjust',
28+
xand=['in_files'],
29+
),
30+
terminal_output=dict(
31+
deprecated='1.0.0',
32+
nohash=True,
33+
),
34+
warps=dict(
35+
argstr='-nwarp %s',
36+
mandatory=True,
37+
),
38+
)
39+
inputs = NwarpAdjust.input_spec()
40+
41+
for key, metadata in list(input_map.items()):
42+
for metakey, value in list(metadata.items()):
43+
assert getattr(inputs.traits()[key], metakey) == value
44+
def test_NwarpAdjust_outputs():
45+
output_map = dict(out_file=dict(), )
46+
outputs = NwarpAdjust.output_spec()
47+
48+
for key, metadata in list(output_map.items()):
49+
for metakey, value in list(metadata.items()):
50+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)