code: def test_error_routing(self, app, mocker):
      blueprint = Blueprint("test", __name__)
      api = restplus.Api(blueprint)
      api.add_resource(HelloWorld, "/hi", endpoint="hello")
      api.add_resource(GoodbyeWorld(404), "/bye", endpoint="bye")
      app.register_blueprint(blueprint)
      with app.test_request_context("/hi", method="POST"):
          assert api._should_use_fr_error_handler() is True
          assert api._has_fr_route() is True
      with app.test_request_context("/bye"):
          api._should_use_fr_error_handler = mocker.Mock(
              return_value=False
          )
          assert api._has_fr_route() is True
  
imports: from __future__ import unicode_literals
  import flask
  from flask import Blueprint, request
  import flask_restplus
label_desc: Use image node_id 10 for calling the APIWithBlueprintTest obj's underlying member method code with example usage: obj.test_error_routing(app, mocker) without return types