def test_handle_api_error(self):
        api = restplus.Api(self.app)

        class Test(restplus.Resource):
            def get(self):
                flask.abort(404)

        api.add_resource(Test(), '/api', endpoint='api')
        # app = self.app.test_client()

        resp = self.get("/api")
        assert_equals(resp.status_code, 404)
        assert_equals('application/json', resp.headers['Content-Type'])
        data = loads(resp.data.decode())
        assert_true(data in 'message')
dataset/ETHPy150Open noirbizarre/flask-restplus/tests/legacy/test_api.py/APITestCase.test_handle_api_error/swapped operands of `in`