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

Method test14a_copyNodeExisting

tables/tests/test_basics.py:990–997  ·  view source on GitHub ↗

Copying over an existing node.

(self)

Source from the content-addressed store, hash-verified

988 )
989
990 def test14a_copyNodeExisting(self):
991 """Copying over an existing node."""
992
993 self._reopen(mode="r+", node_cache_slots=self.node_cache_slots)
994
995 with self.assertRaises(tb.NodeError):
996 # agroup2 => agroup
997 self.h5file.copy_node(self.h5file.root.agroup2, newname="agroup")
998
999 def test14b_copyNodeExistingOverwrite(self):
1000 """Copying over an existing node, overwriting it."""

Callers

nothing calls this directly

Calls 2

copy_nodeMethod · 0.80
_reopenMethod · 0.45

Tested by

no test coverage detected