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

Method test05_rename

tables/tests/test_links.py:208–221  ·  view source on GitHub ↗

Renaming a soft link.

(self)

Source from the content-addressed store, hash-verified

206 )
207
208 def test05_rename(self):
209 """Renaming a soft link."""
210
211 # Rename the link
212 lgroup1 = self.h5file.root.lgroup1
213 lgroup1.rename("lgroup2")
214 lgroup2 = self.h5file.root.lgroup2
215 if common.verbose:
216 print("Moved link:", lgroup2)
217 self.assertNotIn("/lgroup1", self.h5file)
218 self.assertIn("/lgroup2", self.h5file)
219 self._checkEqualityGroup(
220 self.h5file.root.group1, self.h5file.root.lgroup2()
221 )
222
223 def test06a_relative_path(self):
224 """Using soft links with relative paths."""

Callers

nothing calls this directly

Calls 2

_checkEqualityGroupMethod · 0.80
renameMethod · 0.45

Tested by

no test coverage detected