code: def test_auth_driver_user(self, get_auth_cookies):
      user = self.get_user("admin")
      driver = Mock()
      get_auth_cookies.return_value = {
          "session": "session_val",
          "other_cookie": "other_val",
      }
      machine_auth_provider_factory.instance.authenticate_webdriver(
          driver, user
      )
      driver.add_cookie.assert_has_calls(
          [
              call({"name": "session", "value": "session_val"}),
              call({"name": "other_cookie", "value": "other_val"}),
          ]
      )
  
file_path: superset/tests/integration_tests/utils/machine_auth_tests.py
imports: from unittest.mock import call, Mock, patch
  from superset.extensions import machine_auth_provider_factory
  from tests.integration_tests.base_tests import SupersetTestCase
label_desc: Use image node_id 2 for calling the MachineAuthProviderTests obj's underlying member method code with example usage: obj.test_auth_driver_user(get_auth_cookies) without return types