def METHOD_NAME(self):
    for locale_language, active_language, expected_result in (
        (settings.LANGUAGE_CODE, settings.LANGUAGE_CODE, True),
        (settings.LANGUAGE_CODE, "fr", False),
        ("zh-hans", settings.LANGUAGE_CODE, False),
        ("en", "en-gb", True),
        ("foo", settings.LANGUAGE_CODE, False),
    ):
        with self.subTest(f"locale={locale_language} active={active_language}"):
            with translation.override(active_language):
                locale = Locale(language_code=locale_language)
                self.assertEqual(locale.is_active, expected_result)