Renaming a soft link.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected