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

Method testEdit

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

Source from the content-addressed store, hash-verified

72 self.assertEqual(comment.url, "/gists/lazy/comments/42")
73
74 def testEdit(self):
75 self.comment.edit("Comment edited by PyGithub")
76 self.assertEqual(self.comment.body, "Comment edited by PyGithub")
77 self.assertEqual(
78 self.comment.updated_at,
79 datetime(2012, 5, 19, 7, 12, 32, tzinfo=timezone.utc),
80 )
81
82 def testDelete(self):
83 self.comment.delete()

Callers

nothing calls this directly

Calls 1

editMethod · 0.45

Tested by

no test coverage detected