-
Notifications
You must be signed in to change notification settings - Fork 533
/
Copy pathtest_auto_TckSift2.py
50 lines (44 loc) · 1.22 KB
/
test_auto_TckSift2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..utils import TckSift2
def test_TckSift2_inputs():
input_map = dict(
args=dict(
argstr="%s",
),
environ=dict(
nohash=True,
usedefault=True,
),
in_file=dict(
argstr="%s",
extensions=None,
mandatory=True,
position=-3,
),
in_fod=dict(
argstr="%s",
extensions=None,
mandatory=True,
position=-2,
),
out_weights=dict(
argstr="%s",
extensions=None,
mandatory=True,
position=-1,
),
)
inputs = TckSift2.input_spec()
for key, metadata in list(input_map.items()):
for metakey, value in list(metadata.items()):
assert getattr(inputs.traits()[key], metakey) == value
def test_TckSift2_outputs():
output_map = dict(
out_weights=dict(
extensions=None,
),
)
outputs = TckSift2.output_spec()
for key, metadata in list(output_map.items()):
for metakey, value in list(metadata.items()):
assert getattr(outputs.traits()[key], metakey) == value