Skip to content

Commit 09ae8ed

Browse files
committed
make specs
1 parent 145ae8c commit 09ae8ed

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..registration import CompositeTransformUtil
4+
5+
6+
def test_CompositeTransformUtil_inputs():
7+
input_map = dict(
8+
args=dict(argstr='%s', ),
9+
environ=dict(
10+
nohash=True,
11+
usedefault=True,
12+
),
13+
in_file=dict(
14+
argstr='%s...',
15+
mandatory=True,
16+
position=3,
17+
),
18+
num_threads=dict(
19+
nohash=True,
20+
usedefault=True,
21+
),
22+
out_file=dict(
23+
argstr='%s',
24+
position=2,
25+
),
26+
output_prefix=dict(
27+
argstr='%s',
28+
position=4,
29+
usedefault=True,
30+
),
31+
process=dict(
32+
argstr='--%s',
33+
position=1,
34+
usedefault=True,
35+
),
36+
)
37+
inputs = CompositeTransformUtil.input_spec()
38+
39+
for key, metadata in list(input_map.items()):
40+
for metakey, value in list(metadata.items()):
41+
assert getattr(inputs.traits()[key], metakey) == value
42+
def test_CompositeTransformUtil_outputs():
43+
output_map = dict(
44+
affine_transform=dict(),
45+
displacement_field=dict(),
46+
out_file=dict(),
47+
)
48+
outputs = CompositeTransformUtil.output_spec()
49+
50+
for key, metadata in list(output_map.items()):
51+
for metakey, value in list(metadata.items()):
52+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)