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

Method test00b_reopenMD

tables/tests/test_enum.py:440–459  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

438 )
439
440 def test00b_reopenMD(self):
441 """Reopening a file with extendable arrays using enumerated
442 multi-dimensional data."""
443
444 self.h5file.create_earray(
445 "/",
446 "test",
447 self._atom(),
448 shape=(0, 2),
449 title=self._getMethodName(),
450 )
451 self.h5file.root.test.flavor = "python"
452
453 self._reopen()
454
455 self.assertEqual(
456 self.h5file.root.test.get_enum(),
457 self.enum,
458 "Enumerated type was not restored correctly from disk.",
459 )
460
461 def test_enum_default_persistence_red(self):
462 dflt = "red"

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected