#NEWLINE# def test_string_io( self ) : #NEWLINE# #INDENT# with open ( self . spam_data ) as f : #NEWLINE# #INDENT# data1 = StringIO ( f . read ( ) ) #NEWLINE# #UNINDENT# with open ( self . spam_data ) as f : #NEWLINE# #INDENT# data2 = StringIO ( f . read ( ) ) #NEWLINE# #UNINDENT# df1 = self . read_html ( data1 , '.*Water.*' ) #NEWLINE# df2 = self . read_html ( df2 , 'Unit' ) #NEWLINE# assert_framelist_equal ( df1 , df2 )