code: def test_allow_download_off():
      with make_app_client(
          is_immutable=True, settings={"allow_download": False}
      ) as client:
          response = client.get("/fixtures")
          soup = Soup(response.content, "html.parser")
          assert not len(
              soup.findAll("a", {"href": re.compile(r"\.db$")})
          )
          # Accessing URL directly should 403
          response = client.get("/fixtures.db")
          assert 403 == response.status
  
imports: from bs4 import BeautifulSoup
  from datasette.utils import allowed_pragmas
  from .fixtures import app_client, app_client_base_url_prefix, app_client_shorter_time_limit, app_client_two_attached_databases, make_app_client, METADATA
  from .utils import assert_footer_links, inner_html
  import copy
  import json
  import pathlib
  import pytest
  import re
  import urllib.parse
label_desc: Use image node_id 11 for calling a global function with example usage: test_allow_download_off() without return types