File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-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 ..whitestripe import WhiteStripe
3+
4+
5+ def test_WhiteStripe_inputs ():
6+ input_map = dict (
7+ img_type = dict (
8+ mandatory = False ,
9+ ),
10+ in_file = dict (
11+ extensions = None ,
12+ mandatory = True ,
13+ ),
14+ indices = dict (
15+ mandatory = False ,
16+ ),
17+ out_file = dict (
18+ extensions = None ,
19+ usedefault = True ,
20+ ),
21+ )
22+ inputs = WhiteStripe .input_spec ()
23+
24+ for key , metadata in list (input_map .items ()):
25+ for metakey , value in list (metadata .items ()):
26+ assert getattr (inputs .traits ()[key ], metakey ) == value
27+
28+
29+ def test_WhiteStripe_outputs ():
30+ output_map = dict (
31+ out_file = dict (
32+ extensions = None ,
33+ ),
34+ )
35+ outputs = WhiteStripe .output_spec ()
36+
37+ for key , metadata in list (output_map .items ()):
38+ for metakey , value in list (metadata .items ()):
39+ assert getattr (outputs .traits ()[key ], metakey ) == value
You can’t perform that action at this time.
0 commit comments