code: def test_method_security_headers(self, app):
      api = restplus.Api(
          app,
          authorizations={
              "apikey": {
                  "type": "apiKey",
                  "in": "header",
                  "name": "X-API",
              }
          },
      )
  
      @api.route("/secure/")
      class Secure(restplus.Resource):
          @api.doc("secure", security="apikey")
          def get(self):
              pass
  
      @api.route("/unsecure/")
      class Unsecure(restplus.Resource):
          @api.doc("unsecure")
          def get(self):
              pass
  
      data = api.as_postman()
  
      validate(data, schema)
      requests = dict(
          (r["name"], r["headers"]) for r in data["requests"]
      )
  
      assert requests["unsecure"] == ""
      assert requests["secure"] == "X-API:"
  
imports: from __future__ import unicode_literals, absolute_import
  import json
  from os.path import join, dirname
  from jsonschema import validate
  from werkzeug.datastructures import FileStorage
  import flask_restplus
  from six.moves.urllib.parse import parse_qs, urlparse
label_desc: Use image node_id 14 for calling the PostmanTest obj's underlying member method code with example usage: obj.test_method_security_headers(app) without return types