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

Method test04_move

tables/tests/test_links.py:514–528  ·  view source on GitHub ↗

Moving an external link.

(self)

Source from the content-addressed store, hash-verified

512 )
513
514 def test04_move(self):
515 """Moving an external link."""
516
517 # Move the link into another location
518 lgroup1 = self.h5file.root.lgroup1
519 group2 = self.h5file.create_group("/", "group2")
520 lgroup1.move(group2, "lgroup2")
521 lgroup2 = self.h5file.root.group2.lgroup2
522 if common.verbose:
523 print("Moved link:", lgroup2)
524 self.assertNotIn("/lgroup1", self.h5file)
525 self.assertIn("/group2/lgroup2", self.h5file)
526 self._checkEqualityGroup(
527 self.exth5file.root.group1, self.h5file.root.group2.lgroup2()
528 )
529
530 def test05_rename(self):
531 """Renaming an external link."""

Callers

nothing calls this directly

Calls 3

create_groupMethod · 0.80
_checkEqualityGroupMethod · 0.80
moveMethod · 0.45

Tested by

no test coverage detected