code: def test_slugify_use_unicode(self):
      samples = (
          ("this is a test", "this-is-a-test"),
          ("this        is a test", "this-is-a-test"),
          ("this → is ← a ↑ test", "this-is-a-test"),
          ("this--is---a test", "this-is-a-test"),
          ("unicode測試許功蓋，你看到了嗎？", "unicode測試許功蓋你看到了嗎"),
          ("Çığ", "çığ"),
      )
  
      settings = read_settings()
      subs = settings["SLUG_REGEX_SUBSTITUTIONS"]
  
      for value, expected in samples:
          self.assertEqual(
              utils.slugify(value, regex_subs=subs, use_unicode=True),
              expected,
          )
  
      # check with preserve case
      for value, expected in samples:
          self.assertEqual(
              utils.slugify(
                  "Çığ",
                  regex_subs=subs,
                  preserve_case=True,
                  use_unicode=True,
              ),
              "Çığ",
          )
  
      # check normalization
      samples = (
          ("大飯原発４号機、１８日夜起動へ", "大飯原発4号機18日夜起動へ"),
          (
              "\N{LATIN SMALL LETTER C}\N{COMBINING CEDILLA}",
              "\N{LATIN SMALL LETTER C WITH CEDILLA}",
          ),
      )
      for value, expected in samples:
          self.assertEqual(
              utils.slugify(value, regex_subs=subs, use_unicode=True),
              expected,
          )
  
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 7 for calling the TestUtils obj's underlying member method code with example usage: obj.test_slugify_use_unicode() without return types