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

Method testLazyAttributes

tests/RepositoryKey.py:83–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 )
82
83 def testLazyAttributes(self):
84 issue = self.g.withLazy(True).get_repo("lazy/repo").get_key(42)
85 self.assertEqual(str(issue), "RepositoryKey(title=None, id=42)")
86 self.assertEqual(issue.id, 42)
87 self.assertEqual(issue.url, "/repos/lazy/repo/keys/42")
88
89 def testYetUnusedKey(self):
90 self.assertEqual(self.yet_unused_key.id, 98051552)

Callers

nothing calls this directly

Calls 3

get_keyMethod · 0.45
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected