MCPcopy Index your code
hub / github.com/python/cpython / check

Method check

Lib/test/test_ordered_dict.py:305–311  ·  view source on GitHub ↗
(dup)

Source from the content-addressed store, hash-verified

303 od.x = ['x']
304 od.z = ['z']
305 def check(dup):
306 msg = "\ncopy: %s\nod: %s" % (dup, od)
307 self.assertIsNot(dup, od, msg)
308 self.assertEqual(dup, od)
309 self.assertEqual(list(dup.items()), list(od.items()))
310 self.assertEqual(len(dup), len(od))
311 self.assertEqual(type(dup), type(od))
312 check(od.copy())
313 dup = copy.copy(od)
314 check(dup)

Callers

nothing calls this directly

Calls 4

listClass · 0.85
assertIsNotMethod · 0.80
assertEqualMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected