Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 45a173f

Browse filesBrowse files
committed
make specs
1 parent a1997f3 commit 45a173f
Copy full SHA for 45a173f

File tree

1 file changed

+50
-0
lines changed
Filter options

1 file changed

+50
-0
lines changed
+50Lines 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 ..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=2,
17+
),
18+
num_threads=dict(
19+
nohash=True,
20+
usedefault=True,
21+
),
22+
output_prefix=dict(
23+
argstr='%s',
24+
position=3,
25+
usedefault=True,
26+
),
27+
process=dict(
28+
argstr='--%s',
29+
position=1,
30+
usedefault=True,
31+
),
32+
)
33+
inputs = CompositeTransformUtil.input_spec()
34+
35+
for key, metadata in list(input_map.items()):
36+
for metakey, value in list(metadata.items()):
37+
assert getattr(inputs.traits()[key], metakey) == value
38+
def test_CompositeTransformUtil_outputs():
39+
output_map = dict(
40+
affine_transform=dict(
41+
mandatory=True,
42+
position=2,
43+
),
44+
displacement_field=dict(),
45+
)
46+
outputs = CompositeTransformUtil.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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.