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

Method test07d_renameLeaf

tables/tests/test_basics.py:447–455  ·  view source on GitHub ↗

Checking renaming a Group under a nested group.

(self)

Source from the content-addressed store, hash-verified

445 self.assertEqual(array_.attrs.TITLE, "hello")
446
447 def test07d_renameLeaf(self):
448 """Checking renaming a Group under a nested group."""
449
450 self._reopen(mode="r+", node_cache_slots=self.node_cache_slots)
451 self.h5file.rename_node(self.h5file.root.agroup.anarray2, "anarray3")
452
453 # Ensure that we can access n attributes in the new group
454 node = self.h5file.root.agroup.anarray3
455 self.assertEqual(node._v_title, "Array title 2")
456
457 def test08_renameToExistingLeaf(self):
458 """Checking renaming a node to an existing name."""

Callers

nothing calls this directly

Calls 2

_reopenMethod · 0.45
rename_nodeMethod · 0.45

Tested by

no test coverage detected