We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e86e2f commit 810a298Copy full SHA for 810a298
nibabel/tests/test_ecat.py
@@ -7,6 +7,7 @@
7
#
8
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
9
import os
10
+import tempfile
11
12
import numpy as np
13
@@ -194,9 +195,12 @@ def test_file(self):
194
195
self.example_file)
196
assert_equal(self.img.file_map['image'].filename,
197
- assert_raises(NotImplementedError,
198
- self.img.to_filename,
199
- 'tmp.v')
+
+ def test_save(self):
200
+ with tempfile.NamedTemporaryFile(suffix='.v') as tmp_file:
201
+ self.img.to_filename(tmp_file.name)
202
+ other = self.image_class.load(tmp_file.name)
203
+ assert_equal(self.img.get_data().all(), other.get_data().all())
204
205
def test_data(self):
206
dat = self.img.get_data()
0 commit comments