Checking removing a lonely group from an existing file.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected