Checking moving tables and modify attributes after that.
(self)
| 706 | self.assertEqual(table_.nrows, nrows + 1) |
| 707 | |
| 708 | def test10_2c_moveTable(self): |
| 709 | """Checking moving tables and modify attributes after that.""" |
| 710 | |
| 711 | self._reopen(mode="r+", node_cache_slots=self.node_cache_slots) |
| 712 | newgroup = self.h5file.create_group("/", "newgroup") |
| 713 | self.h5file.move_node(self.h5file.root.atable, newgroup, "atable2") |
| 714 | table_ = self.h5file.root.newgroup.atable2 |
| 715 | table_.attrs.TITLE = "hello" |
| 716 | |
| 717 | # Ensure that the new attribute has been written correctly |
| 718 | self.assertEqual(table_.title, "hello") |
| 719 | self.assertEqual(table_.attrs.TITLE, "hello") |
| 720 | |
| 721 | def test10_2d_moveToExistingTable(self): |
| 722 | """Checking moving a table to an existing name.""" |
nothing calls this directly
no test coverage detected