#NEWLINE# def test_filelike( self ) : #NEWLINE# #INDENT# f1 = open ( test1 ) #NEWLINE# ( data1 , meta1 ) = loadarff ( f1 ) #NEWLINE# f1 . close ( ) #NEWLINE# f2 = open ( test1 ) #NEWLINE# ( data2 , meta2 ) = loadarff ( StringIO ( f2 . read ( ) ) ) #NEWLINE# f2 . close ( ) #NEWLINE# assert_ ( ( data1 == data2 ) ) #NEWLINE# assert_ ( ( repr ( f2 ) == repr ( meta2 ) ) )