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

Method test00a_reopen

tables/tests/test_enum.py:614–629  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

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

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