#NEWLINE# def test_events( self ) : #NEWLINE# #INDENT# 'Test that a user can iterate over the events from a repository.' #NEWLINE# cassette_name = self . cassette_name ( 'events' ) #NEWLINE# with self . recorder . use_cassette ( cassette_name ) : #NEWLINE# #INDENT# repository = self . gh . repository ( 'sigmavirus24' , 'github3.py' ) #NEWLINE# assert ( repository is not None ) #NEWLINE# events = list ( repository . events ( number = 100 ) ) #NEWLINE# #UNINDENT# assert ( len ( events ) > 0 ) #NEWLINE# for event in events : #NEWLINE# #INDENT# assert isinstance ( event , github3 . events . Event )