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

Method test_uid_index

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

Source from the content-addressed store, hash-verified

626 self.assertEqual(repr(UID(1)), "UID(1)")
627
628 def test_uid_index(self):
629 self.assertEqual(operator.index(UID(1)), 1)
630
631 def test_uid_pickle(self):
632 for proto in range(pickle.HIGHEST_PROTOCOL + 1):

Callers

nothing calls this directly

Calls 3

UIDClass · 0.90
assertEqualMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected