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