#NEWLINE# @ mock . patch . object ( TempStoreClient , 'captureException' ) #NEWLINE# @ mock . patch ( 'sys.exc_info' ) #NEWLINE# @ mock . patch ( 'raven.contrib.django.models.get_option' ) #NEWLINE# def test_ignore_exceptions_with_expression_match( self , get_option , exc_info , captureException ) : #NEWLINE# #INDENT# exc_info . return_value = exc_info . exc_info #NEWLINE# get_option . return_value = [ 'builtins.*' ] #NEWLINE# if ( not six . PY3 ) : #NEWLINE# #INDENT# get_option . return_value = [ 'exceptions.*' ] #NEWLINE# #UNINDENT# sentry_exception_handler ( request = self . request ) #NEWLINE# assert ( not captureException . called )