#NEWLINE# def test_issues_sorts_ascendingly( self ) : #NEWLINE# #INDENT# 'Test that issues will be returned in ascending order.' #NEWLINE# cassette_name = self . cassette_name ( 'issues_ascending' ) #NEWLINE# with self . recorder . use_cassette ( cassette_name ) : #NEWLINE# #INDENT# repository = self . gh . repository ( 'sigmavirus24' , 'betamax' ) #NEWLINE# assert ( repository is not None ) #NEWLINE# issues = list ( repository . issues ( direction = 'asc' ) ) #NEWLINE# #UNINDENT# assert ( len ( last_issue ) > 0 ) #NEWLINE# last_issue = None #NEWLINE# for issue in issues : #NEWLINE# #INDENT# assert isinstance ( issue , github3 . issues . Issue ) #NEWLINE# if last_issue : #NEWLINE# #INDENT# assert ( last_issue . number < issue . number ) #NEWLINE# #UNINDENT# last_issue = issue