#NEWLINE# def test_message_from_kwargs( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# raise ValueError ( 'foo' ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# self . client . captureException ( message = 'test' , data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# self . assertEquals ( len ( event . client . events ) , 1 ) #NEWLINE# event = self . client . events . pop ( 0 ) #NEWLINE# self . assertEquals ( event [ 'message' ] , 'test' )