Skip to content

Commit 6733cba

Browse files
committed
add: invalid lta test
1 parent 96a034b commit 6733cba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nitransforms/tests/test_io.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ def test_LinearTransformArray(tmpdir, data_path):
4545
assert lta['nxforms'] == 0
4646
assert len(lta['xforms']) == 0
4747

48+
# read invalid LTA file
49+
test_lta = str(data_path / 'affine-RAS.fsl')
50+
with pytest.raises(TransformFileError):
51+
with open(test_lta) as fp:
52+
LTA.from_fileobj(fp)
53+
4854
test_lta = str(data_path / 'affine-RAS.fs.lta')
4955
with open(test_lta) as fp:
5056
lta = LTA.from_fileobj(fp)

0 commit comments

Comments
 (0)