docstr: Dashboard API: Test get dashboards no data access
docstr_tok: ["Dashboard","API",":","Test","get","dashboards","no","data","access"]
code: def test_get_dashboards_api_no_data_access(self):
      """
      Dashboard API: Test get dashboards no data access
      """
      admin = self.get_user("admin")
      title = f"title{random_str()}"
      dashboard = create_dashboard_to_db(title, "slug1", owners=[admin])
  
      self.login(username="gamma")
      arguments = {
          "filters": [
              {
                  "col": "dashboard_title",
                  "opr": "sw",
                  "value": title[0:8],
              }
          ]
      }
      uri = DASHBOARDS_API_URL_WITH_QUERY_FORMAT.format(
          prison.dumps(arguments)
      )
      rv = self.client.get(uri)
      self.assert200(rv)
      data = json.loads(rv.data.decode("utf-8"))
      self.assertEqual(0, data["count"])
      DashboardDAO.delete([dashboard])
  
file_path: superset/tests/integration_tests/dashboards/security/security_dataset_tests.py
imports: import json
  import prison
  import pytest
  from flask import escape
  from superset import app
  from superset.daos.dashboard import DashboardDAO
  from tests.integration_tests.dashboards.base_case import DashboardTestCase
  from tests.integration_tests.dashboards.consts import *
  from tests.integration_tests.dashboards.dashboard_test_utils import *
  from tests.integration_tests.dashboards.superset_factory_util import *
  from tests.integration_tests.fixtures.energy_dashboard import load_energy_table_data, load_energy_table_with_slice
label_desc: Use image node_id 7 for calling the TestDashboardDatasetSecurity obj's underlying member method code with example usage: obj.test_get_dashboards_api_no_data_access() without return types