#NEWLINE# def test_gets_file( self , tmpdir ) : #NEWLINE# #INDENT# with open ( str ( tmpdir . join ( 'file.txt' ) ) , 'wb' ) as fp : #NEWLINE# #INDENT# fp . write ( b'my test file contents' ) #NEWLINE# #UNINDENT# storage = LocalFileStorage ( str ( tmpdir ) ) #NEWLINE# file_object = storage . get ( 'file.txt' ) #NEWLINE# assert ( file_object . read ( ) == b'my test file contents' )