#NEWLINE# def _replace_flask_abort( self , calls = 1 ) : #NEWLINE# #INDENT# 'Replaces flask.abort function using mocker' #NEWLINE# abort = self . mocker . replace ( 'flask.abort' ) #NEWLINE# abort ( 404 ) #NEWLINE# self . mocker . count ( calls ) #NEWLINE# self . mocker . replay ( )