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

Method test00b_reopenMD

tables/tests/test_enum.py:261–275  ·  view source on GitHub ↗

Reopening a file with tables using enumerated multi-dimensional data.

(self)

Source from the content-addressed store, hash-verified

259 )
260
261 def test00b_reopenMD(self):
262 """Reopening a file with tables using enumerated multi-dimensional
263 data."""
264
265 self.h5file.create_table(
266 "/", "test", self._description((2,)), title=self._getMethodName()
267 )
268
269 self._reopen()
270
271 self.assertEqual(
272 self.h5file.root.test.get_enum("rcolor"),
273 self.enum,
274 "Enumerated type was not restored correctly from disk.",
275 )
276
277 def test01_rowAppend(self):
278 """Appending enumerated values using ``row.append()``."""

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