MCPcopy Index your code
hub / github.com/PyTables/PyTables / test06a_removeGroup

Method test06a_removeGroup

tables/tests/test_basics.py:341–353  ·  view source on GitHub ↗

Checking removing a lonely group from an existing file.

(self)

Source from the content-addressed store, hash-verified

339 del self.h5file.root.agroup
340
341 def test06a_removeGroup(self):
342 """Checking removing a lonely group from an existing file."""
343
344 self._reopen(mode="r+", node_cache_slots=self.node_cache_slots)
345
346 self.h5file.remove_node(self.h5file.root, "agroup2")
347
348 # Open this file in read-only mode
349 self._reopen(node_cache_slots=self.node_cache_slots)
350
351 # Try to get the removed object
352 with self.assertRaises(LookupError):
353 self.h5file.root.agroup2
354
355 def test06b_removeLeaf(self):
356 """Checking removing Leaves from an existing file."""

Callers

nothing calls this directly

Calls 2

remove_nodeMethod · 0.80
_reopenMethod · 0.45

Tested by

no test coverage detected