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

Method _checkEqualityGroup

tables/tests/common.py:256–273  ·  view source on GitHub ↗
(self, node1, node2, hardlink=False)

Source from the content-addressed store, hash-verified

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:

Callers 15

test00_createMethod · 0.80
test01_openMethod · 0.80
test00_createMethod · 0.80
test01_openMethod · 0.80
test03_copyMethod · 0.80
test03_overwriteMethod · 0.80
test04_moveMethod · 0.80
test05_renameMethod · 0.80
test06a_relative_pathMethod · 0.80
test06b_relative_pathMethod · 0.80
test00_createMethod · 0.80
test01_openMethod · 0.80

Calls

no outgoing calls

Tested by 15

test00_createMethod · 0.64
test01_openMethod · 0.64
test00_createMethod · 0.64
test01_openMethod · 0.64
test03_copyMethod · 0.64
test03_overwriteMethod · 0.64
test04_moveMethod · 0.64
test05_renameMethod · 0.64
test06a_relative_pathMethod · 0.64
test06b_relative_pathMethod · 0.64
test00_createMethod · 0.64
test01_openMethod · 0.64