class_docstr: Tests for `SecurityValidatorMiddleware`.
class_docstr_tok: ["Tests","for","`","SecurityValidatorMiddleware","`","."]
code: def test_validate_content_type(self):
      self.make_request_and_assert_no_warn(
          create_headers(content_type="application/json"),
      )
  
      self.make_request_and_maybe_assert_warn(
          create_headers(content_type=""),
          "Content-Type is required on a Response",
      )
  
file_path: tensorboard/tensorboard/backend/security_validator_test.py
imports: from unittest import mock
  import werkzeug
  from werkzeug import test
  from werkzeug.datastructures import Headers
  from werkzeug.wrappers import Response
  from tensorboard import test
  from tensorboard.backend import security_validator
  from tensorboard.util import tb_logging
label_desc: Use image node_id 3 for calling the SecurityValidatorMiddlewareTest obj's underlying member method code with example usage: obj.test_validate_content_type() without return types