Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed May 5, 2024
1 parent 50d13bf commit 81e564f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/test_io_hdf5_h5tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,13 @@ def test_expand_false(self):
with HDF5IO(self.path, manager=self.manager, mode='w') as io:
io.write(foofile, expandable=False)

io = HDF5IO(self.path, manager=self.manager, mode='r')
read_foofile = io.read()
self.assertListEqual(foofile.buckets['bucket1'].foos['foo1'].my_data,
read_foofile.buckets['bucket1'].foos['foo1'].my_data[:].tolist())
self.assertEqual(get_data_shape(read_foofile.buckets['bucket1'].foos['foo1'].my_data),
(5,))


class TestRoundTrip(TestCase):

Expand Down

0 comments on commit 81e564f

Please sign in to comment.