code: def test_abort_data(self):
      with pytest.raises(HTTPException) as cm:
          restplus.abort(404, foo="bar")
      assert cm.value.data == {"foo": "bar"}
  
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 2 for calling the ErrorsTest obj's underlying member method code with example usage: obj.test_abort_data() without return types