docstr: Log API: Test get list
docstr_tok: ["Log","API",":","Test","get","list"]
code: def test_get_list(self):
      """
      Log API: Test get list
      """
      admin_user = self.get_user("admin")
      log = self.insert_log("some_action", admin_user)
      self.login(username="admin")
      arguments = {
          "filters": [{"col": "action", "opr": "sw", "value": "some_"}]
      }
      uri = f"api/v1/log/?q={prison.dumps(arguments)}"
      rv = self.client.get(uri)
      self.assertEqual(rv.status_code, 200)
      response = json.loads(rv.data.decode("utf-8"))
      self.assertEqual(
          list(response["result"][0].keys()), EXPECTED_COLUMNS
      )
      self.assertEqual(response["result"][0]["action"], "some_action")
      self.assertEqual(
          response["result"][0]["user"], {"username": "admin"}
      )
      db.session.delete(log)
      db.session.commit()
  
imports: from datetime import datetime, timedelta
  import json
  from typing import Optional
  from unittest.mock import ANY
  from flask_appbuilder.security.sqla.models import User
  import prison
  from unittest.mock import patch
  from superset import db
  from superset.models.core import Log
  from superset.views.log.api import LogRestApi
  from tests.integration_tests.conftest import with_feature_flags
  from tests.integration_tests.dashboard_utils import create_dashboard
  from tests.integration_tests.test_app import app
  from .base_tests import SupersetTestCase
label_desc: Use image node_id 3 for calling the TestLogApi obj's underlying member method code with example usage: obj.test_get_list() without return types