Skip to content

Commit a0a506e

Browse files
committed
Add auto test.
1 parent f09d854 commit a0a506e

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..utils import Edge3
4+
5+
6+
def test_Edge3_inputs():
7+
input_map = dict(args=dict(argstr='%s',
8+
),
9+
datum=dict(argstr='-datum %s',
10+
),
11+
environ=dict(nohash=True,
12+
usedefault=True,
13+
),
14+
fscale=dict(argstr='-fscale',
15+
xor=['gscale', 'nscale', 'scale_floats'],
16+
),
17+
gscale=dict(argstr='-gscale',
18+
xor=['fscale', 'nscale', 'scale_floats'],
19+
),
20+
ignore_exception=dict(nohash=True,
21+
usedefault=True,
22+
),
23+
in_file=dict(argstr='-input %s',
24+
copyfile=False,
25+
mandatory=True,
26+
position=0,
27+
),
28+
nscale=dict(argstr='-nscale',
29+
xor=['fscale', 'gscale', 'scale_floats'],
30+
),
31+
out_file=dict(argstr='-prefix %s',
32+
position=-1,
33+
),
34+
outputtype=dict(),
35+
scale_floats=dict(argstr='-scale_floats %f',
36+
xor=['fscale', 'gscale', 'nscale'],
37+
),
38+
terminal_output=dict(nohash=True,
39+
),
40+
verbose=dict(argstr='-verbose',
41+
),
42+
)
43+
inputs = Edge3.input_spec()
44+
45+
for key, metadata in list(input_map.items()):
46+
for metakey, value in list(metadata.items()):
47+
assert getattr(inputs.traits()[key], metakey) == value
48+
49+
50+
def test_Edge3_outputs():
51+
output_map = dict(out_file=dict(),
52+
)
53+
outputs = Edge3.output_spec()
54+
55+
for key, metadata in list(output_map.items()):
56+
for metakey, value in list(metadata.items()):
57+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)