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

Method test05_rename

tables/tests/test_links.py:530–543  ·  view source on GitHub ↗

Renaming an external link.

(self)

Source from the content-addressed store, hash-verified

528 )
529
530 def test05_rename(self):
531 """Renaming an external link."""
532
533 # Rename the link
534 lgroup1 = self.h5file.root.lgroup1
535 lgroup1.rename("lgroup2")
536 lgroup2 = self.h5file.root.lgroup2
537 if common.verbose:
538 print("Moved link:", lgroup2)
539 self.assertNotIn("/lgroup1", self.h5file)
540 self.assertIn("/lgroup2", self.h5file)
541 self._checkEqualityGroup(
542 self.exth5file.root.group1, self.h5file.root.lgroup2()
543 )
544
545 def test07_walkNodes(self):
546 """Checking `walk_nodes` with `classname` option."""

Callers

nothing calls this directly

Calls 2

_checkEqualityGroupMethod · 0.80
renameMethod · 0.45

Tested by

no test coverage detected