Skip to content

Commit c31d7cd

Browse files
committed
Minor fix (test)
1 parent 6401e97 commit c31d7cd

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..utils import TCatSubBrick
4+
5+
6+
def test_TCatSubBrick_inputs():
7+
input_map = dict(args=dict(argstr='%s',
8+
),
9+
environ=dict(nohash=True,
10+
usedefault=True,
11+
),
12+
ignore_exception=dict(deprecated='1.0.0',
13+
nohash=True,
14+
usedefault=True,
15+
),
16+
in_files=dict(argstr='%s%s ...',
17+
copyfile=False,
18+
mandatory=True,
19+
position=-1,
20+
),
21+
num_threads=dict(nohash=True,
22+
usedefault=True,
23+
),
24+
out_file=dict(argstr='-prefix %s',
25+
genfile=True,
26+
),
27+
outputtype=dict(),
28+
rlt=dict(argstr='-rlt%s',
29+
position=1,
30+
),
31+
terminal_output=dict(deprecated='1.0.0',
32+
nohash=True,
33+
),
34+
)
35+
inputs = TCatSubBrick.input_spec()
36+
37+
for key, metadata in list(input_map.items()):
38+
for metakey, value in list(metadata.items()):
39+
assert getattr(inputs.traits()[key], metakey) == value
40+
41+
42+
def test_TCatSubBrick_outputs():
43+
output_map = dict(out_file=dict(),
44+
)
45+
outputs = TCatSubBrick.output_spec()
46+
47+
for key, metadata in list(output_map.items()):
48+
for metakey, value in list(metadata.items()):
49+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)