code: def test_padlocks_on_database_page(cascade_app_client):
      config = {
          "databases": {
              "fixtures": {
                  "allow": {"id": "test"},
                  "tables": {
                      "123_starts_with_digits": {"allow": True},
                      "simple_view": {"allow": True},
                  },
                  "queries": {
                      "query_two": {"allow": True, "sql": "select 2"}
                  },
              }
          }
      }
      previous_config = cascade_app_client.ds.config
      try:
          cascade_app_client.ds.config = config
          response = cascade_app_client.get(
              "/fixtures",
              cookies={
                  "ds_actor": cascade_app_client.actor_cookie(
                      {"id": "test"}
                  )
              },
          )
          # Tables
          assert ">123_starts_with_digits</a></h3>" in response.text
          assert ">Table With Space In Name</a> 🔒</h3>" in response.text
          # Queries
          assert ">from_async_hook</a> 🔒</li>" in response.text
          assert ">query_two</a></li>" in response.text
          # Views
          assert ">paginated_view</a> 🔒</li>" in response.text
          assert ">simple_view</a></li>" in response.text
      finally:
          cascade_app_client.ds.config = previous_config
  
imports: import collections
  from datasette.app import Datasette
  from datasette.cli import cli
  from datasette.default_permissions import restrictions_allow_action
  from .fixtures import app_client, assert_permissions_checked, make_app_client
  from click.testing import CliRunner
  from bs4 import BeautifulSoup
  import copy
  import json
  from pprint import pprint
  import pytest_asyncio
  import pytest
  import re
  import time
  import urllib
label_desc: Use image node_id 17 for calling a global function with example usage: test_padlocks_on_database_page(cascade_app_client) without return types