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

Method testLazyAttributes

tests/GistComment.py:68–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 )
67
68 def testLazyAttributes(self):
69 comment = self.g.withLazy(True).get_gist("lazy").get_comment(42)
70 self.assertEqual(str(comment), "GistComment(user=None, id=42)")
71 self.assertEqual(comment.id, 42)
72 self.assertEqual(comment.url, "/gists/lazy/comments/42")
73
74 def testEdit(self):
75 self.comment.edit("Comment edited by PyGithub")

Callers

nothing calls this directly

Calls 3

get_gistMethod · 0.80
get_commentMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected