def METHOD_NAME(self):
    for language_code in ("en", "zh-hans", "foo"):
        locale = Locale(language_code=language_code)
        with self.subTest(language_code):
            self.assertEqual(str(locale), locale.get_display_name())