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

Method test09d_renameGroup

tables/tests/test_basics.py:549–557  ·  view source on GitHub ↗

Checking renaming a Group under a nested group.

(self)

Source from the content-addressed store, hash-verified

547 self.assertEqual(group._v_attrs.TITLE, "Hello")
548
549 def test09d_renameGroup(self):
550 """Checking renaming a Group under a nested group."""
551
552 self._reopen(mode="r+", node_cache_slots=self.node_cache_slots)
553 self.h5file.rename_node(self.h5file.root.agroup.agroup3, "agroup4")
554
555 # Ensure that we can access n attributes in the new group
556 group = self.h5file.root.agroup.agroup4
557 self.assertEqual(group._v_title, "Group title 3")
558
559 def test09e_renameGroup(self):
560 """Checking renaming a Group with nested groups in the LRU cache."""

Callers

nothing calls this directly

Calls 2

_reopenMethod · 0.45
rename_nodeMethod · 0.45

Tested by

no test coverage detected