class_docstr: Tests that the output of DateFormatter jinja filter is same as
  utils.strftime
class_docstr_tok: ["Tests","that","the","output","of","DateFormatter","jinja","filter","is","same","as","utils.strftime"]
code: def test_french_strftime(self):
      # This test tries to reproduce an issue that
      # occurred with python3.3 under macos10 only
      temp_locale = "French" if platform == "win32" else "fr_FR.UTF-8"
  
      with utils.temporary_locale(temp_locale):
          date = utils.SafeDatetime(2014, 8, 14)
          # we compare the lower() dates since macos10 returns
          # "Jeudi" for %A whereas linux reports "jeudi"
          self.assertEqual(
              "jeudi, 14 août 2014",
              utils.strftime(date, date_format="%A, %d %B %Y").lower(),
          )
          df = utils.DateFormatter()
          self.assertEqual(
              "jeudi, 14 août 2014",
              df(date, date_format="%A, %d %B %Y").lower(),
          )
  
      # Let us now set the global locale to C:
      with utils.temporary_locale("C"):
          # DateFormatter should still work as expected
          # since it is the whole point of DateFormatter
          # (This is where pre-2014/4/15 code fails on macos10)
          df_date = df(date, date_format="%A, %d %B %Y").lower()
          self.assertEqual("jeudi, 14 août 2014", df_date)
  
imports: import locale
  import logging
  import os
  import shutil
  from datetime import timezone
  from sys import platform
  from tempfile import mkdtemp
  from pelican import utils
  from pelican.generators import TemplatePagesGenerator
  from pelican.settings import read_settings
  from pelican.tests.support import LoggedTestCase, get_article, locale_available, unittest
  from pelican.writers import Writer
label_desc: Use image node_id 3 for calling the TestDateFormatter obj's underlying member method code with example usage: obj.test_french_strftime() without return types