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

Method test10d_moveToExistingLeaf

tables/tests/test_basics.py:634–643  ·  view source on GitHub ↗

Checking moving a leaf to an existing name.

(self)

Source from the content-addressed store, hash-verified

632 self.assertEqual(array_.attrs.TITLE, "hello")
633
634 def test10d_moveToExistingLeaf(self):
635 """Checking moving a leaf to an existing name."""
636
637 self._reopen(mode="r+", node_cache_slots=self.node_cache_slots)
638
639 # Try to get the previous object with the old name
640 with self.assertRaises(tb.NodeError):
641 self.h5file.move_node(
642 self.h5file.root.anarray, self.h5file.root, "array"
643 )
644
645 def test10_2_moveTable(self):
646 """Checking moving a table and access it after a close/open."""

Callers

nothing calls this directly

Calls 2

move_nodeMethod · 0.80
_reopenMethod · 0.45

Tested by

no test coverage detected