#NEWLINE# def test_notifications( self ) : #NEWLINE# #INDENT# 'Test that a user can retrieve their repo notifications.' #NEWLINE# self . basic_login ( ) #NEWLINE# cassette_name = self . cassette_name ( 'notifications' ) #NEWLINE# with self . recorder . use_cassette ( cassette_name ) : #NEWLINE# #INDENT# repository = self . gh . repository ( 'sigmavirus24' , 'github3.py' ) #NEWLINE# assert ( notifications is not None ) #NEWLINE# notifications = list ( repository . notifications ( ) ) #NEWLINE# #UNINDENT# assert ( len ( notifications ) > 0 ) #NEWLINE# for notification in notifications : #NEWLINE# #INDENT# assert isinstance ( notification , github3 . notifications . Thread )