Reopening a file with variable-length arrays using enumerated data.
(self)
| 612 | return tb.EnumAtom(self.enum, "red", base=self.enumType, shape=shape) |
| 613 | |
| 614 | def test00a_reopen(self): |
| 615 | """Reopening a file with variable-length arrays using |
| 616 | enumerated data.""" |
| 617 | |
| 618 | self.h5file.create_vlarray( |
| 619 | "/", "test", self._atom(), title=self._getMethodName() |
| 620 | ) |
| 621 | self.h5file.root.test.flavor = "python" |
| 622 | |
| 623 | self._reopen() |
| 624 | |
| 625 | self.assertEqual( |
| 626 | self.h5file.root.test.get_enum(), |
| 627 | self.enum, |
| 628 | "Enumerated type was not restored correctly from disk.", |
| 629 | ) |
| 630 | |
| 631 | def test00b_reopenMD(self): |
| 632 | """Reopening a file with variable-length arrays using enumerated |
nothing calls this directly
no test coverage detected