Reopening a file with extendable arrays using enumerated multi-dimensional data.
(self)
| 438 | ) |
| 439 | |
| 440 | def test00b_reopenMD(self): |
| 441 | """Reopening a file with extendable arrays using enumerated |
| 442 | multi-dimensional data.""" |
| 443 | |
| 444 | self.h5file.create_earray( |
| 445 | "/", |
| 446 | "test", |
| 447 | self._atom(), |
| 448 | shape=(0, 2), |
| 449 | title=self._getMethodName(), |
| 450 | ) |
| 451 | self.h5file.root.test.flavor = "python" |
| 452 | |
| 453 | self._reopen() |
| 454 | |
| 455 | self.assertEqual( |
| 456 | self.h5file.root.test.get_enum(), |
| 457 | self.enum, |
| 458 | "Enumerated type was not restored correctly from disk.", |
| 459 | ) |
| 460 | |
| 461 | def test_enum_default_persistence_red(self): |
| 462 | dflt = "red" |
nothing calls this directly
no test coverage detected