Skip to content

Commit 07bd848

Browse files
committed
Test coverage.
1 parent 10e56f9 commit 07bd848

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nibabel/freesurfer/tests/test_io.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ def test_geometry():
9191
assert_true(any('volume information contained' in str(ww.message)
9292
for ww in w))
9393
assert_true(any('extension code' in str(ww.message) for ww in w))
94+
volume_info['head'] = [1, 2]
95+
with clear_and_catch_warnings() as w:
96+
write_geometry(surf_path, coords, faces, create_stamp, volume_info)
97+
assert_true(any('Unknown extension' in str(ww.message) for ww in w))
98+
volume_info['a'] = 0
99+
assert_raises(ValueError, write_geometry, surf_path, coords,
100+
faces, create_stamp, volume_info)
94101

95102
assert_equal(create_stamp, read_create_stamp)
96103

0 commit comments

Comments
 (0)