File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ def test_brikheadfile(self):
103
103
data = brik .get_data ()
104
104
assert_equal (data .shape , tp ['shape' ])
105
105
assert_array_equal (brik .dataobj .scaling , tp ['scaling' ])
106
+ assert_equal (brik .header .get_volume_labels (), tp ['labels' ])
106
107
107
108
def test_load (self ):
108
109
# Check highest level load of brikhead works
@@ -136,3 +137,14 @@ def test_brikheadfile(self):
136
137
for tp in self .test_files :
137
138
with assert_raises (tp ['err' ]):
138
139
self .module .load (tp ['head' ])
140
+
141
+
142
+ class TestBadVars (object ):
143
+ module = brikhead
144
+ vars = ['type = badtype-attribute\n name = BRICK_TYPES\n count = 1\n 1\n ' ,
145
+ 'type = integer-attribute\n count = 1\n 1\n ' ]
146
+
147
+ def test_unpack_var (self ):
148
+ for var in self .vars :
149
+ with assert_raises (self .module .AFNIHeaderError ):
150
+ self .module ._unpack_var (var )
You can’t perform that action at this time.
0 commit comments