#NEWLINE# def test_stringio( self ) : #NEWLINE# #INDENT# output = StringIO ( ) #NEWLINE# output . write ( 'content' ) #NEWLINE# output . seek ( 0 ) #NEWLINE# temp_storage . save ( 'tests/stringio' , output ) #NEWLINE# self . assertTrue ( temp_storage . exists ( 'tests/stringio' ) ) #NEWLINE# with temp_storage . open ( 'tests/stringio' ) as f : #NEWLINE# #INDENT# self . assertEqual ( f . read ( ) , b'content' )