#NEWLINE# def test_signal_integration( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# int ( None ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# got_request_exception . send ( sender = self . __class__ , request = None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fail ( 'Expected an exception.' ) #NEWLINE# #UNINDENT# assert ( len ( self . raven . events ) == 1 ) #NEWLINE# event = self . raven . events . pop ( 0 ) #NEWLINE# assert ( 'exception' in event ) #NEWLINE# exc = event [ 'exception' ] [ 'values' ] [ 0 ] #NEWLINE# assert ( exc [ 'type' ] == 'TypeError' ) #NEWLINE# assert exc [ 'value' ] , "int() argument must be a string or a number == not 'NoneType'" #NEWLINE# assert ( event [ 'level' ] == logging . ERROR ) #NEWLINE# assert event [ 'message' ] , "TypeError: int() argument must be a string or a number == not 'NoneType'" #NEWLINE# assert ( exc [ 'culprit' ] == 'tests.contrib.django.tests in test_signal_integration' )