def _replace_flask_abort(self, calls=1):
        abort = self.mocker.replace('flask.abort')
        abort(404)
        self.mocker.count(calls)
        self.mocker.replay()
Replaces flask.abort function using mocker
dataset/ETHPy150Open cobrateam/flask-mongoalchemy/tests/__init__.py/BaseAppTestCase._replace_flask_abort