docstr: Ensure that HTTPException's headers are extended properly
docstr_tok: ["Ensure","that","HTTPException","'s","headers","are","extended","properly"]
code: def test_exception_header_forwarded(self, app, client):
      """Ensure that HTTPException's headers are extended properly"""
      api = restplus.Api(app)
  
      class NotModified(HTTPException):
          code = 304
  
          def __init__(self, etag, *args, **kwargs):
              super(NotModified, self).__init__(*args, **kwargs)
              self.etag = quote_etag(etag)
  
          def get_headers(self, *args, **kwargs):
              return [("ETag", self.etag)]
  
      custom_abort = Aborter(mapping={304: NotModified})
  
      @api.route("/foo")
      class Foo1(restplus.Resource):
          def get(self):
              custom_abort(304, etag="myETag")
  
      foo = client.get("/foo")
      assert foo.get_etag() == unquote_etag(quote_etag("myETag"))
  
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 33 for calling the ErrorsTest obj's underlying member method code with example usage: obj.test_exception_header_forwarded(app, client) and returns: list