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

Method test09c_renameGroup

tables/tests/test_basics.py:537–547  ·  view source on GitHub ↗

Checking renaming a Group and modify attributes afterwards.

(self)

Source from the content-addressed store, hash-verified

535 self.h5file.get_node("/agroup/agroup3")
536
537 def test09c_renameGroup(self):
538 """Checking renaming a Group and modify attributes afterwards."""
539
540 self._reopen(mode="r+", node_cache_slots=self.node_cache_slots)
541 self.h5file.rename_node(self.h5file.root.agroup, "agroup3")
542
543 # Ensure that we can modify attributes in the new group
544 group = self.h5file.root.agroup3
545 group._v_attrs.TITLE = "Hello"
546 self.assertEqual(group._v_title, "Hello")
547 self.assertEqual(group._v_attrs.TITLE, "Hello")
548
549 def test09d_renameGroup(self):
550 """Checking renaming a Group under a nested group."""

Callers

nothing calls this directly

Calls 2

_reopenMethod · 0.45
rename_nodeMethod · 0.45

Tested by

no test coverage detected