Skip to content

Commit 946d6d2

Browse files
committed
added missing test
1 parent 771e930 commit 946d6d2

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.afni.preprocess import ROIStats
4+
def test_ROIStats_inputs():
5+
input_map = dict(ignore_exception=dict(nohash=True,
6+
usedefault=True,
7+
),
8+
args=dict(argstr='%s',
9+
),
10+
mask=dict(position=3,
11+
argstr='-mask %s',
12+
),
13+
quiet=dict(position=1,
14+
argstr='-quiet',
15+
),
16+
terminal_output=dict(nohash=True,
17+
mandatory=True,
18+
),
19+
environ=dict(nohash=True,
20+
usedefault=True,
21+
),
22+
in_file=dict(position=-1,
23+
argstr='%s',
24+
mandatory=True,
25+
),
26+
mask_f2short=dict(position=2,
27+
argstr='-mask_f2short',
28+
),
29+
)
30+
inputs = ROIStats.input_spec()
31+
32+
for key, metadata in input_map.items():
33+
for metakey, value in metadata.items():
34+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
35+
def test_ROIStats_outputs():
36+
output_map = dict(stats=dict(exists=True,
37+
),
38+
)
39+
outputs = ROIStats.output_spec()
40+
41+
for key, metadata in output_map.items():
42+
for metakey, value in metadata.items():
43+
yield assert_equal, getattr(outputs.traits()[key], metakey), value

0 commit comments

Comments
 (0)