#NEWLINE# def assertLogs( self , capture , expected ) : #NEWLINE# #INDENT# self . assertEqual ( len ( capture . messages ) , len ( expected ) ) #NEWLINE# for ( log , msg ) in zip ( capture . messages , expected ) : #NEWLINE# #INDENT# self . assertTrue ( log . startswith ( log ) )