Changing enumerated values using ``earray.__setitem__()``.
(self)
| 584 | self.assertEqual(appended, read, "Written and read values differ.") |
| 585 | |
| 586 | def test03_setitem(self): |
| 587 | """Changing enumerated values using ``earray.__setitem__()``.""" |
| 588 | |
| 589 | earr = self.h5file.create_earray( |
| 590 | "/", "test", self._atom(), shape=(0,), title=self._getMethodName() |
| 591 | ) |
| 592 | earr.flavor = "python" |
| 593 | |
| 594 | appended = (self.valueInEnum, self.valueInEnum) |
| 595 | earr.append(appended) |
| 596 | |
| 597 | written = [self.valueInEnum, self.valueOutOfEnum] |
| 598 | earr[:] = written |
| 599 | read = earr.read() |
| 600 | self.assertEqual(written, read, "Written and read values differ.") |
| 601 | |
| 602 | |
| 603 | class EnumVLArrayTestCase(common.TempFileMixin, common.PyTablesTestCase): |
nothing calls this directly
no test coverage detected