docstr: CssTemplate API: Test info security
docstr_tok: ["CssTemplate","API",":","Test","info","security"]
code: def test_info_security_css_template(self):
      """
      CssTemplate API: Test info security
      """
      self.login(username="admin")
      params = {"keys": ["permissions"]}
      uri = f"api/v1/css_template/_info?q={prison.dumps(params)}"
      rv = self.get_assert_metric(uri, "info")
      data = json.loads(rv.data.decode("utf-8"))
      assert rv.status_code == 200
      assert "can_read" in data["permissions"]
      assert "can_write" in data["permissions"]
      assert len(data["permissions"]) == 2
  
imports: import json
  import pytest
  import prison
  from datetime import datetime
  from freezegun import freeze_time
  from sqlalchemy.sql import func
  import tests.integration_tests.test_app
  from superset import db
  from superset.models.core import CssTemplate
  from superset.utils.database import get_example_database
  from tests.integration_tests.base_tests import SupersetTestCase
label_desc: Use image node_id 7 for calling the TestCssTemplateApi obj's underlying member method code with example usage: obj.test_info_security_css_template() without return types