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

Method test_uid_eq

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

Source from the content-addressed store, hash-verified

615 self.assertEqual(uid.data, 1)
616
617 def test_uid_eq(self):
618 self.assertEqual(UID(1), UID(1))
619 self.assertNotEqual(UID(1), UID(2))
620 self.assertNotEqual(UID(1), "not uid")
621
622 def test_uid_hash(self):
623 self.assertEqual(hash(UID(1)), hash(UID(1)))

Callers

nothing calls this directly

Calls 3

UIDClass · 0.90
assertNotEqualMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected