[python-hdf5storage] 51/152: Added more tests for write and readback when not writing MATLAB metadata.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:24:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 0.1
in repository python-hdf5storage.
commit cee850c7b7b4d96584b95b9467e553734e700449
Author: Freja Nordsiek <fnordsie at gmail.com>
Date: Mon Jan 27 02:30:58 2014 -0500
Added more tests for write and readback when not writing MATLAB metadata.
---
tests/test_write_readback.py | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/tests/test_write_readback.py b/tests/test_write_readback.py
index e23cb39..3e283a9 100755
--- a/tests/test_write_readback.py
+++ b/tests/test_write_readback.py
@@ -19,7 +19,7 @@ random.seed()
class TestWriteReadbackCpythonMatlab(unittest.TestCase):
def setUp(self):
- self.filename = 'data.h5'
+ self.filename = 'data.mat'
# Use the default options.
self.options = hdf5storage.Options()
@@ -172,5 +172,15 @@ class TestWriteReadbackCpythonMatlab(unittest.TestCase):
self.options)
self.assert_equal_bytearray(data, out)
+
+class TestWriteReadbackCpython(TestWriteReadbackCpythonMatlab):
+ def setUp(self):
+ # The parent does most of the setup. All that has to be changed
+ # is turning MATLAB compatibility off and changing the file
+ # name.
+ TestWriteReadbackCpythonMatlab.setUp(self)
+ self.options = hdf5storage.Options(MATLAB_compatible=False)
+ self.filename = 'data.h5'
+
if __name__ == '__main__':
unittest.main()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-hdf5storage.git
More information about the debian-science-commits
mailing list