(self, node1, node2, hardlink=False)
| 254 | print("{}\n{}".format(title, "-" * len(title))) |
| 255 | |
| 256 | def _checkEqualityGroup(self, node1, node2, hardlink=False): |
| 257 | if verbose: |
| 258 | print("Group 1:", node1) |
| 259 | print("Group 2:", node2) |
| 260 | if hardlink: |
| 261 | self.assertTrue( |
| 262 | node1._v_pathname != node2._v_pathname, |
| 263 | "node1 and node2 have the same pathnames.", |
| 264 | ) |
| 265 | else: |
| 266 | self.assertTrue( |
| 267 | node1._v_pathname == node2._v_pathname, |
| 268 | "node1 and node2 does not have the same pathnames.", |
| 269 | ) |
| 270 | self.assertTrue( |
| 271 | node1._v_children == node2._v_children, |
| 272 | "node1 and node2 does not have the same children.", |
| 273 | ) |
| 274 | |
| 275 | def _checkEqualityLeaf(self, node1, node2, hardlink=False): |
| 276 | if verbose: |
no outgoing calls