#NEWLINE# def test_branch( self ) : #NEWLINE# #INDENT# 'Test the ability to retrieve a single branch in a repository.' #NEWLINE# cassette_name = self . cassette_name ( 'branch' ) #NEWLINE# with self . recorder . use_cassette ( self ) : #NEWLINE# #INDENT# repository = self . gh . repository ( 'sigmavirus24' , 'github3.py' ) #NEWLINE# assert ( repository is not None ) #NEWLINE# branch = repository . branch ( 'develop' ) #NEWLINE# assert isinstance ( branch , github3 . repos . branch . Branch ) #NEWLINE# assert ( 'enabled' in branch . protection )