code: def test_event_on_config_theme_locale(self):
      plugin = search.SearchPlugin()
      plugin.load_config({})
      result = plugin.on_config(
          load_config(
              theme={"name": "mkdocs", "locale": "fr"},
              extra_javascript=[],
          )
      )
      self.assertFalse(result["theme"]["search_index_only"])
      self.assertFalse(result["theme"]["include_search_page"])
      self.assertEqual(
          result["theme"].static_templates, {"404.html", "sitemap.xml"}
      )
      self.assertEqual(len(result["theme"].dirs), 3)
      self.assertEqual(result["extra_javascript"], ["search/main.js"])
      self.assertEqual(
          plugin.config.lang, [result["theme"]["locale"].language]
      )
  
imports: import json
  import unittest
  from unittest import mock
  from mkdocs.config.config_options import ValidationError
  from mkdocs.contrib import search
  from mkdocs.contrib.search import search_index
  from mkdocs.structure.files import File
  from mkdocs.structure.pages import Page
  from mkdocs.structure.toc import get_toc
  from mkdocs.tests.base import dedent, get_markdown_toc, load_config
label_desc: Use image node_id 9 for calling the SearchPluginTests obj's underlying member method code with example usage: obj.test_event_on_config_theme_locale() without return types