def test_locale_get_script02(self): locale = ULocale('und-Zzzz') script = locale.get_script() self.assertEqual('Zzzz', script)
def test_locale_get_line_orientation03(self): locale = ULocale('und-Zzzz') layout = locale.get_line_orientation() self.assertEqual(ULocale.ULOC_LAYOUT_TTB, layout)
def test_locale_get_script01(self): locale = ULocale('sr-Latn-RS-REVISED@currency=USD') script = locale.get_script() self.assertEqual('Latn', script)
def test_locale_get_language02(self): locale = ULocale('und-Zzzz') language = locale.get_language() self.assertEqual('und', language)
def test_locale_get_language01(self): locale = ULocale('sr-Latn-RS-REVISED@currency=USD') language = locale.get_language() self.assertEqual('sr', language)
def test_locale_get_default(self): locale = ULocale.get_default() language = locale.get_language() self.assertTrue(language is not None)
def test_locale_get_character_orientation03(self): locale = ULocale('und-Zzzz') layout = locale.get_character_orientation() self.assertEqual(ULocale.ULOC_LAYOUT_LTR, layout)
def test_locale_get_character_orientation02(self): locale = ULocale('fa') layout = locale.get_character_orientation() self.assertEqual(ULocale.ULOC_LAYOUT_RTL, layout)