class_docstr: Provided a file, it should read it, replace the default values,
  append new values to the settings (if any), and apply basic settings
  optimizations.
class_docstr_tok: ["Provided","a","file",",","it","should","read","it",",","replace","the","default","values",",","append","new","values","to","the","settings","(","if","any",")",",","and","apply","basic","settings","optimizations","."]
code: def test_default_encoding(self):
      # Test that the user locale is set if not specified in settings
  
      locale.setlocale(locale.LC_ALL, "C")
      # empty string = user system locale
      self.assertEqual(self.settings["LOCALE"], [""])
  
      configure_settings(self.settings)
      lc_time = locale.getlocale(
          locale.LC_TIME
      )  # should be set to user locale
  
      # explicitly set locale to user pref and test
      locale.setlocale(locale.LC_TIME, "")
      self.assertEqual(lc_time, locale.getlocale(locale.LC_TIME))
  
imports: import copy
  import locale
  import os
  from os.path import abspath, dirname, join
  from pelican.settings import DEFAULT_CONFIG, DEFAULT_THEME, _printf_s_to_format_field, configure_settings, handle_deprecated_settings, read_settings
  from pelican.tests.support import unittest
label_desc: Use image node_id 13 for calling the TestSettingsConfiguration obj's underlying member method code with example usage: obj.test_default_encoding() without return types