File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments