#NEWLINE# def test_refs( self ) : #NEWLINE# #INDENT# 'Test the ability to retrieve the references from a repository.' #NEWLINE# cassette_name = self . cassette_name ( 'refs' ) #NEWLINE# with self . recorder . use_cassette ( cassette_name ) : #NEWLINE# #INDENT# repository = self . gh . repository ( 'sigmavirus24' , 'github3.py' ) #NEWLINE# assert ( repository is not None ) #NEWLINE# references = list ( repository . refs ( ) ) #NEWLINE# #UNINDENT# assert ( len ( references ) > 0 ) #NEWLINE# for ref in references : #NEWLINE# #INDENT# assert isinstance ( ref , github3 . git . Reference )