code: def test_handle_error(self, app):
      api = restplus.Api(app)
  
      response = api.handle_error(BadRequest())
      assert response.status_code == 400
      assert json.loads(response.data.decode()) == {
          "message": BadRequest.description,
      }
  
imports: from __future__ import unicode_literals
  import json
  import logging
  import pytest
  from flask import Blueprint, abort
  from flask.signals import got_request_exception
  from werkzeug.exceptions import HTTPException, BadRequest, NotFound, Aborter
  from werkzeug.http import quote_etag, unquote_etag
  import flask_restplus
label_desc: Use image node_id 26 for calling the ErrorsTest obj's underlying member method code with example usage: obj.test_handle_error(app) without return types