예제 #1
0
파일: test_icu.py 프로젝트: miute/svgpy
 def test_locale_get_script02(self):
     locale = ULocale('und-Zzzz')
     script = locale.get_script()
     self.assertEqual('Zzzz', script)
예제 #2
0
파일: test_icu.py 프로젝트: miute/svgpy
 def test_locale_get_line_orientation03(self):
     locale = ULocale('und-Zzzz')
     layout = locale.get_line_orientation()
     self.assertEqual(ULocale.ULOC_LAYOUT_TTB, layout)
예제 #3
0
파일: test_icu.py 프로젝트: miute/svgpy
 def test_locale_get_script01(self):
     locale = ULocale('sr-Latn-RS-REVISED@currency=USD')
     script = locale.get_script()
     self.assertEqual('Latn', script)
예제 #4
0
파일: test_icu.py 프로젝트: miute/svgpy
 def test_locale_get_language02(self):
     locale = ULocale('und-Zzzz')
     language = locale.get_language()
     self.assertEqual('und', language)
예제 #5
0
파일: test_icu.py 프로젝트: miute/svgpy
 def test_locale_get_language01(self):
     locale = ULocale('sr-Latn-RS-REVISED@currency=USD')
     language = locale.get_language()
     self.assertEqual('sr', language)
예제 #6
0
파일: test_icu.py 프로젝트: miute/svgpy
 def test_locale_get_default(self):
     locale = ULocale.get_default()
     language = locale.get_language()
     self.assertTrue(language is not None)
예제 #7
0
파일: test_icu.py 프로젝트: miute/svgpy
 def test_locale_get_character_orientation03(self):
     locale = ULocale('und-Zzzz')
     layout = locale.get_character_orientation()
     self.assertEqual(ULocale.ULOC_LAYOUT_LTR, layout)
예제 #8
0
파일: test_icu.py 프로젝트: miute/svgpy
 def test_locale_get_character_orientation02(self):
     locale = ULocale('fa')
     layout = locale.get_character_orientation()
     self.assertEqual(ULocale.ULOC_LAYOUT_RTL, layout)