mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
11 lines
408 B
Python
11 lines
408 B
Python
import Framework
|
|
|
|
class Branch( Framework.TestCase ):
|
|
def setUp( self ):
|
|
Framework.TestCase.setUp( self )
|
|
self.branch = self.g.get_user().get_repo( "PyGithub" ).get_branches()[ 0 ]
|
|
|
|
def testAttributes( self ):
|
|
self.assertEqual( self.branch.name, "topic/RewriteWithGeneratedCode" )
|
|
self.assertEqual( self.branch.commit.sha, "1292bf0e22c796e91cc3d6e24b544aece8c21f2a" )
|