-
Notifications
You must be signed in to change notification settings - Fork 532
/
Copy pathtest_auto_Zeropad.py
97 lines (91 loc) · 2.24 KB
/
test_auto_Zeropad.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..utils import Zeropad
def test_Zeropad_inputs():
input_map = dict(
A=dict(
argstr="-A %i",
xor=["master"],
),
AP=dict(
argstr="-AP %i",
xor=["master"],
),
I=dict(
argstr="-I %i",
xor=["master"],
),
IS=dict(
argstr="-IS %i",
xor=["master"],
),
L=dict(
argstr="-L %i",
xor=["master"],
),
P=dict(
argstr="-P %i",
xor=["master"],
),
R=dict(
argstr="-R %i",
xor=["master"],
),
RL=dict(
argstr="-RL %i",
xor=["master"],
),
S=dict(
argstr="-S %i",
xor=["master"],
),
args=dict(
argstr="%s",
),
environ=dict(
nohash=True,
usedefault=True,
),
in_files=dict(
argstr="%s",
copyfile=False,
extensions=None,
mandatory=True,
position=-1,
),
master=dict(
argstr="-master %s",
extensions=None,
xor=["I", "S", "A", "P", "L", "R", "z", "RL", "AP", "IS", "mm"],
),
mm=dict(
argstr="-mm",
xor=["master"],
),
num_threads=dict(
nohash=True,
usedefault=True,
),
out_file=dict(
argstr="-prefix %s",
extensions=None,
),
outputtype=dict(),
z=dict(
argstr="-z %i",
xor=["master"],
),
)
inputs = Zeropad.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_Zeropad_outputs():
output_map = dict(
out_file=dict(
extensions=None,
),
)
outputs = Zeropad.output_spec()
for key, metadata in list(output_map.items()):
for metakey, value in list(metadata.items()):
assert getattr(outputs.traits()[key], metakey) == value