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

Method testLazyAttributes

tests/IssueComment.py:103–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 )
102
103 def testLazyAttributes(self):
104 comment = self.g.withLazy(True).get_repo("lazy/repo").get_issue(42).get_comment(24)
105 self.assertEqual(str(comment), "IssueComment(user=None, id=24)")
106 self.assertEqual(comment.id, 24)
107 self.assertEqual(comment.url, "/repos/lazy/repo/issues/comments/24")
108
109 def testEdit(self):
110 self.comment.edit("Comment edited by PyGithub")

Callers

nothing calls this directly

Calls 4

get_commentMethod · 0.45
get_issueMethod · 0.45
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected