code: def test_handle_error_signal(self, app):
      api = restplus.Api(app)
  
      exception = BadRequest()
  
      recorded = []
  
      def record(sender, exception):
          recorded.append(exception)
  
      got_request_exception.connect(record, app)
      try:
          # with self.app.test_request_context("/foo"):
          api.handle_error(exception)
          assert len(recorded) == 1
          assert exception is recorded[0]
      finally:
          got_request_exception.disconnect(record, app)
  
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 25 for calling the ErrorsTest obj's underlying member method code with example usage: obj.test_handle_error_signal(app) without return types