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

Method test_uid_pickle

Lib/test/test_plistlib.py:631–633  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

629 self.assertEqual(operator.index(UID(1)), 1)
630
631 def test_uid_pickle(self):
632 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
633 self.assertEqual(pickle.loads(pickle.dumps(UID(19), protocol=proto)), UID(19))
634
635 def test_uid_copy(self):
636 self.assertEqual(copy.copy(UID(1)), UID(1))

Callers

nothing calls this directly

Calls 4

UIDClass · 0.90
assertEqualMethod · 0.45
loadsMethod · 0.45
dumpsMethod · 0.45

Tested by

no test coverage detected