Skip to content

Commit 369769a

Browse files
committed
TEST: make specs
1 parent 2a1d07d commit 369769a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..image import Rescale
4+
5+
6+
def test_Rescale_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+
invert=dict(),
15+
percentile=dict(usedefault=True, ),
16+
ref_file=dict(mandatory=True, ),
17+
)
18+
inputs = Rescale.input_spec()
19+
20+
for key, metadata in list(input_map.items()):
21+
for metakey, value in list(metadata.items()):
22+
assert getattr(inputs.traits()[key], metakey) == value
23+
def test_Rescale_outputs():
24+
output_map = dict(out_file=dict(), )
25+
outputs = Rescale.output_spec()
26+
27+
for key, metadata in list(output_map.items()):
28+
for metakey, value in list(metadata.items()):
29+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)