#NEWLINE# def test_infer_schema( self ) : #NEWLINE# #INDENT# with AvroWriter ( self . client , 'weather.avro' ) as writer : #NEWLINE# #INDENT# for record in self . records : #NEWLINE# #INDENT# writer . write ( record ) #NEWLINE# #UNINDENT# #UNINDENT# with AvroReader ( self . client , 'weather.avro' ) as reader : #NEWLINE# #INDENT# eq_ ( list ( reader ) , writer . records )