MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testBranchEquality

Method testBranchEquality

tests/Equality.py:51–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 self.assertNotEqual(hash(u1), hash(u2))
50
51 def testBranchEquality(self):
52 # Erf, equality of NonCompletableGithubObjects will be difficult to implement
53 # because even their _rawData can differ. (Here, the avatar_url is not equal)
54 # (CompletableGithubObjects are compared by their API url, which is a good key)
55 r = self.g.get_user().get_repo("PyGithub")
56 b1 = r.get_branch("develop")
57 b2 = r.get_branch("develop")
58 self.assertNotEqual(b1._rawData, b2._rawData)

Callers

nothing calls this directly

Calls 3

get_userMethod · 0.80
get_branchMethod · 0.80
get_repoMethod · 0.45

Tested by

no test coverage detected