Skip to content

Commit 2961958

Browse files
author
dmordom
committed
added test for Vnifti2Image interface
1 parent 18363f9 commit 2961958

File tree

2 files changed

+44
-0
lines changed

2 files changed

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

nipype/testing/data/image.nii

Whitespace-only changes.

0 commit comments

Comments
 (0)