def test_url_with_registration_prefix(self, app):
    blueprint = Blueprint('test', __name__)
    api = restx.Api(blueprint)
    api.add_resource(HelloWorld, '/hi', endpoint='hello')
    app.register_blueprint(blueprint, url_prefix='/reg')
    with app.test_request_context('/reg/hi'):
        assert (request.endpoint == 'test.hello')
def test_url_with_registration_prefix(self, app):
    blueprint = Blueprint('test', __name__)
    api = restx.Api(blueprint)
    api.add_resource(HelloWorld, '/hi', endpoint='hello')
    app.register_blueprint(blueprint, url_prefix='/reg')
    with app.test_request_context('/reg/hi'):
        assert (request.endpoint == 'test.hello')