def METHOD_NAME(self):
    for language_code, expected_result in (
        ("en", "English"),  # configured
        ("zh-hans", "Simplified Chinese"),  # not configured but valid
        ("foo", "foo"),  # not configured or valid
    ):
        locale = Locale(language_code=language_code)
        with self.subTest(language_code):
            self.assertEqual(locale.get_display_name(), expected_result)