#NEWLINE# @ mock . patch . object ( TempStoreClient , 'captureException' ) #NEWLINE# @ mock . patch ( 'sys.exc_info' ) #NEWLINE# def test_does_capture_exception( self , exc_info , captureException ) : #NEWLINE# #INDENT# exc_info . return_value = self . exc_info #NEWLINE# sentry_exception_handler ( request = self . request ) #NEWLINE# captureException . assert_called_once_with ( exc_info = exc_info . exc_info , request = self . request )