File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
nipype/interfaces/afni/tests Expand file tree Collapse file tree 1 file changed +50
-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 ..utils import NwarpAdjust
4+
5+
6+ def test_NwarpAdjust_inputs ():
7+ input_map = dict (
8+ args = dict (argstr = '%s' , ),
9+ environ = dict (
10+ nohash = True ,
11+ usedefault = True ,
12+ ),
13+ ignore_exception = dict (
14+ deprecated = '1.0.0' ,
15+ nohash = True ,
16+ usedefault = True ,
17+ ),
18+ in_files = dict (
19+ argstr = '-source %s' ,
20+ mandatory = False ,
21+ ),
22+ out_file = dict (
23+ argstr = '-prefix %s' ,
24+ keep_extension = True ,
25+ mandatory = False ,
26+ name_source = 'in_files' ,
27+ name_template = '%s_NwarpAdjust' ,
28+ xand = ['in_files' ],
29+ ),
30+ terminal_output = dict (
31+ deprecated = '1.0.0' ,
32+ nohash = True ,
33+ ),
34+ warps = dict (
35+ argstr = '-nwarp %s' ,
36+ mandatory = True ,
37+ ),
38+ )
39+ inputs = NwarpAdjust .input_spec ()
40+
41+ for key , metadata in list (input_map .items ()):
42+ for metakey , value in list (metadata .items ()):
43+ assert getattr (inputs .traits ()[key ], metakey ) == value
44+ def test_NwarpAdjust_outputs ():
45+ output_map = dict (out_file = dict (), )
46+ outputs = NwarpAdjust .output_spec ()
47+
48+ for key , metadata in list (output_map .items ()):
49+ for metakey , value in list (metadata .items ()):
50+ assert getattr (outputs .traits ()[key ], metakey ) == value
You can’t perform that action at this time.
0 commit comments