Skip to content

Commit 1073bc0

Browse files
committed
TEST: make specs
1 parent 15c959f commit 1073bc0

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..image import Reorient
4+
5+
6+
def test_Reorient_inputs():
7+
input_map = dict(
8+
ignore_exception=dict(
9+
deprecated='1.0.0',
10+
nohash=True,
11+
usedefault=True,
12+
),
13+
in_file=dict(mandatory=True, ),
14+
orientation=dict(usedefault=True, ),
15+
)
16+
inputs = Reorient.input_spec()
17+
18+
for key, metadata in list(input_map.items()):
19+
for metakey, value in list(metadata.items()):
20+
assert getattr(inputs.traits()[key], metakey) == value
21+
def test_Reorient_outputs():
22+
output_map = dict(
23+
out_file=dict(),
24+
transform=dict(),
25+
)
26+
outputs = Reorient.output_spec()
27+
28+
for key, metadata in list(output_map.items()):
29+
for metakey, value in list(metadata.items()):
30+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)