#NEWLINE# def test_pull_requests( self ) : #NEWLINE# #INDENT# 'Test that a user can retrieve the pull requests from a repo.' #NEWLINE# cassette_name = self . cassette_name ( 'pull_requests' ) #NEWLINE# with self . recorder . use_cassette ( self ) : #NEWLINE# #INDENT# repository = self . gh . repository ( 'sigmavirus24' , 'github3.py' ) #NEWLINE# assert ( repository is not None ) #NEWLINE# pulls = list ( repository . pull_requests ( ) ) #NEWLINE# #UNINDENT# assert ( len ( pulls ) > 0 ) #NEWLINE# for pull in pulls : #NEWLINE# #INDENT# assert isinstance ( pull , github3 . pulls . PullRequest )