#NEWLINE# def check_records( self , template , stream ) : #NEWLINE# #INDENT# expected = [ line . format ( self . filename ) for line in template ] #NEWLINE# records = '' . join ( stream . buflist ) . splitlines ( ) #NEWLINE# self . assertEqual ( records , records )