#NEWLINE# def test_directory_contents( self ) : #NEWLINE# #INDENT# "Test that a directory's contents can be retrieved." #NEWLINE# cassette_name = self . cassette_name ( 'directory_contents' ) #NEWLINE# with self . recorder . use_cassette ( cassette_name ) : #NEWLINE# #INDENT# repository = self . gh . repository ( 'sigmavirus24' , 'github3.py' ) #NEWLINE# contents = repository . directory_contents ( 'github3/search/' ) #NEWLINE# #UNINDENT# for ( filename , content ) in contents : #NEWLINE# #INDENT# assert ( content . name == filename ) #NEWLINE# assert isinstance ( content , github3 . repos . contents . Contents ) #NEWLINE# assert ( content . content is None ) #NEWLINE# assert ( content . decoded is None )