mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
23 lines
1021 B
Python
23 lines
1021 B
Python
import Framework
|
|
|
|
class IssueComment( Framework.TestCase ):
|
|
def setUp( self ):
|
|
Framework.TestCase.setUp( self )
|
|
self.comment = self.g.get_user().get_repo( "PyGithub" ).get_issue( 28 ).get_comment( 5808311 )
|
|
|
|
def testAttributes( self ):
|
|
self.assertEqual( self.comment.body, "Comment created by PyGithub" )
|
|
self.assertEqual( self.comment.created_at, "2012-05-20T11:46:42Z" )
|
|
self.assertEqual( self.comment.id, 5808311 )
|
|
self.assertEqual( self.comment.updated_at, "2012-05-20T11:46:42Z" )
|
|
self.assertEqual( self.comment.url, "https://api.github.com/repos/jacquev6/PyGithub/issues/comments/5808311" )
|
|
self.assertEqual( self.comment.user.login, "jacquev6" )
|
|
|
|
def testEdit( self ):
|
|
self.comment.edit( "Comment edited by PyGithub" )
|
|
self.assertEqual( self.comment.body, "Comment edited by PyGithub" )
|
|
self.assertEqual( self.comment.updated_at, "2012-05-20T11:53:59Z" )
|
|
|
|
def testDelete( self ):
|
|
self.comment.delete()
|