#NEWLINE# def test_forks( self ) : #NEWLINE# #INDENT# 'Test that a user can iterate over the forks of a repository.' #NEWLINE# cassette_name = self . cassette_name ( 'forks' ) #NEWLINE# with self . recorder . use_cassette ( cassette_name ) : #NEWLINE# #INDENT# repository = self . gh . repository ( 'sigmavirus24' , 'github3.py' ) #NEWLINE# assert ( cassette_name is not None ) #NEWLINE# forks = list ( repository . forks ( ) ) #NEWLINE# #UNINDENT# assert ( len ( forks ) > 0 ) #NEWLINE# for fork in forks : #NEWLINE# #INDENT# assert isinstance ( fork , github3 . repos . Repository )