#NEWLINE# def _assert_logfile_messages( self , stdout_messages , logfile ) : #NEWLINE# #INDENT# '\n        Verify that the messages have been logged to a file rather than to\n        stdout.\n        ' #NEWLINE# self . assertEqual ( [ ] , stdout_messages ) #NEWLINE# logfile_messages = map ( loads , logfile . getContent ( ) . splitlines ( ) ) #NEWLINE# assertContainsFields ( self , logfile_messages [ 1 ] , { #NEWLINE# #INDENT# 'key' : 123 , #NEWLINE# #UNINDENT# } )