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

Method test01_append

tables/tests/test_enum.py:549–562  ·  view source on GitHub ↗

Appending scalar elements of enumerated values.

(self)

Source from the content-addressed store, hash-verified

547 )
548
549 def test01_append(self):
550 """Appending scalar elements of enumerated values."""
551
552 earr = self.h5file.create_earray(
553 "/", "test", self._atom(), shape=(0,), title=self._getMethodName()
554 )
555 earr.flavor = "python"
556
557 appended = [self.valueInEnum, self.valueOutOfEnum]
558
559 earr.append(appended)
560 earr.flush()
561 read = earr.read()
562 self.assertEqual(appended, read, "Written and read values differ.")
563
564 def test02_appendMD(self):
565 """Appending multi-dimensional elements of enumerated values."""

Callers

nothing calls this directly

Calls 6

_atomMethod · 0.95
create_earrayMethod · 0.80
_getMethodNameMethod · 0.80
appendMethod · 0.45
flushMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected