File tree 1 file changed +52
-0
lines changed
nipype/interfaces/ants/tests
1 file changed +52
-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 ..registration import CompositeTransformUtil
4
+
5
+
6
+ def test_CompositeTransformUtil_inputs ():
7
+ input_map = dict (
8
+ args = dict (argstr = '%s' , ),
9
+ environ = dict (
10
+ nohash = True ,
11
+ usedefault = True ,
12
+ ),
13
+ in_file = dict (
14
+ argstr = '%s...' ,
15
+ mandatory = True ,
16
+ position = 3 ,
17
+ ),
18
+ num_threads = dict (
19
+ nohash = True ,
20
+ usedefault = True ,
21
+ ),
22
+ out_file = dict (
23
+ argstr = '%s' ,
24
+ position = 2 ,
25
+ ),
26
+ output_prefix = dict (
27
+ argstr = '%s' ,
28
+ position = 4 ,
29
+ usedefault = True ,
30
+ ),
31
+ process = dict (
32
+ argstr = '--%s' ,
33
+ position = 1 ,
34
+ usedefault = True ,
35
+ ),
36
+ )
37
+ inputs = CompositeTransformUtil .input_spec ()
38
+
39
+ for key , metadata in list (input_map .items ()):
40
+ for metakey , value in list (metadata .items ()):
41
+ assert getattr (inputs .traits ()[key ], metakey ) == value
42
+ def test_CompositeTransformUtil_outputs ():
43
+ output_map = dict (
44
+ affine_transform = dict (),
45
+ displacement_field = dict (),
46
+ out_file = dict (),
47
+ )
48
+ outputs = CompositeTransformUtil .output_spec ()
49
+
50
+ for key , metadata in list (output_map .items ()):
51
+ for metakey , value in list (metadata .items ()):
52
+ assert getattr (outputs .traits ()[key ], metakey ) == value
You can’t perform that action at this time.
0 commit comments