MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_uid_pickle

Method test_uid_pickle

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

Source from the content-addressed store, hash-verified

567 self.assertEqual(operator.index(UID(1)), 1)
568
569 def test_uid_pickle(self):
570 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
571 self.assertEqual(pickle.loads(pickle.dumps(UID(19), protocol=proto)), UID(19))
572
573 def test_uid_copy(self):
574 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