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

Method _checkEqualityLeaf

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

Source from the content-addressed store, hash-verified

273 )
274
275 def _checkEqualityLeaf(self, node1, node2, hardlink=False):
276 if verbose:
277 print("Leaf 1:", node1)
278 print("Leaf 2:", node2)
279 if hardlink:
280 self.assertTrue(
281 node1._v_pathname != node2._v_pathname,
282 "node1 and node2 have the same pathnames.",
283 )
284 else:
285 self.assertTrue(
286 node1._v_pathname == node2._v_pathname,
287 "node1 and node2 does not have the same pathnames.",
288 )
289 self.assertTrue(
290 areArraysEqual(node1[:], node2[:]),
291 "node1 and node2 does not have the same values.",
292 )
293
294
295class TestFileMixin:

Callers 6

test00_createMethod · 0.80
test01_openMethod · 0.80
test00_createMethod · 0.80
test01_openMethod · 0.80
test00_createMethod · 0.80
test01_openMethod · 0.80

Calls 1

areArraysEqualFunction · 0.85

Tested by 6

test00_createMethod · 0.64
test01_openMethod · 0.64
test00_createMethod · 0.64
test01_openMethod · 0.64
test00_createMethod · 0.64
test01_openMethod · 0.64