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

Method test13c_copyGroupSelf

tables/tests/test_basics.py:892–903  ·  view source on GitHub ↗

Copying a group into itself.

(self)

Source from the content-addressed store, hash-verified

890 self.assertIs(new_node, dstNode)
891
892 def test13c_copyGroupSelf(self):
893 """Copying a group into itself."""
894
895 self._reopen(mode="r+", node_cache_slots=self.node_cache_slots)
896
897 # agroup2 => agroup2/
898 new_node = self.h5file.copy_node(
899 self.h5file.root.agroup2, self.h5file.root.agroup2
900 )
901 dstNode = self.h5file.root.agroup2.agroup2
902
903 self.assertIs(new_node, dstNode)
904
905 def test13d_copyGroupRecursive(self):
906 """Recursively copying a group."""

Callers

nothing calls this directly

Calls 2

copy_nodeMethod · 0.80
_reopenMethod · 0.45

Tested by

no test coverage detected