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

Method test00a_reopen

tables/tests/test_enum.py:246–259  ·  view source on GitHub ↗

Reopening a file with tables using enumerated data.

(self)

Source from the content-addressed store, hash-verified

244 return TestDescription
245
246 def test00a_reopen(self):
247 """Reopening a file with tables using enumerated data."""
248
249 self.h5file.create_table(
250 "/", "test", self._description(), title=self._getMethodName()
251 )
252
253 self._reopen()
254
255 self.assertEqual(
256 self.h5file.root.test.get_enum("rcolor"),
257 self.enum,
258 "Enumerated type was not restored correctly from disk.",
259 )
260
261 def test00b_reopenMD(self):
262 """Reopening a file with tables using enumerated multi-dimensional

Callers

nothing calls this directly

Calls 5

_descriptionMethod · 0.95
_getMethodNameMethod · 0.80
create_tableMethod · 0.45
_reopenMethod · 0.45
get_enumMethod · 0.45

Tested by

no test coverage detected