code: def test_multiple_default_endpoint_for_namespace_with_blueprint(
      self, app
  ):
      blueprint = Blueprint("api", __name__, url_prefix="/api")
      api = restplus.Api(blueprint)
      ns = api.namespace("ns", "Test namespace")
  
      @ns.route("/test2/")
      @ns.route("/test/")
      class TestResource(restplus.Resource):
          pass
  
      app.register_blueprint(blueprint)
  
      with app.test_request_context():
          assert url_for("api.ns_test_resource") == "/api/ns/test/"
          assert url_for("api.ns_test_resource_2") == "/api/ns/test2/"
  
imports: from __future__ import unicode_literals
  import copy
  from flask import url_for, Blueprint
  import flask_restplus
label_desc: Use image node_id 21 for calling the APITest obj's underlying member method code with example usage: obj.test_multiple_default_endpoint_for_namespace_with_blueprint(app) without return types