MCPcopy Create free account
hub / github.com/PyTables/PyTables / test00b_reopenMD

Method test00b_reopenMD

tables/tests/test_enum.py:631–646  ·  view source on GitHub ↗

Reopening a file with variable-length arrays using enumerated multi-dimensional data.

(self)

Source from the content-addressed store, hash-verified

629 )
630
631 def test00b_reopenMD(self):
632 """Reopening a file with variable-length arrays using enumerated
633 multi-dimensional data."""
634
635 self.h5file.create_vlarray(
636 "/", "test", self._atom((2,)), title=self._getMethodName()
637 )
638 self.h5file.root.test.flavor = "python"
639
640 self._reopen()
641
642 self.assertEqual(
643 self.h5file.root.test.get_enum(),
644 self.enum,
645 "Enumerated type was not restored correctly from disk.",
646 )
647
648 def test01_append(self):
649 """Appending scalar elements of enumerated values."""

Callers

nothing calls this directly

Calls 5

_atomMethod · 0.95
create_vlarrayMethod · 0.80
_getMethodNameMethod · 0.80
_reopenMethod · 0.45
get_enumMethod · 0.45

Tested by

no test coverage detected