Esempio n. 1
0
    def test_primaryLangNoMatch(self):
        """Test fall back to first available language if no match.
		"""
        actual = uwpOcr._getInitialLanguage("it", self.LANGS)
        self.assertEqual(actual, "de-DE")
Esempio n. 2
0
	def test_primaryLangNoMatch(self):
		"""Test fall back to first available language if no match.
		"""
		actual = uwpOcr._getInitialLanguage("it", self.LANGS)
		self.assertEqual(actual, "de-DE")
Esempio n. 3
0
 def test_fullLangPrimaryMatch(self):
     actual = uwpOcr._getInitialLanguage("en_AU", self.LANGS)
     self.assertEqual(actual, "en-US")
Esempio n. 4
0
	def test_fullLangPrimaryMatch(self):
		actual = uwpOcr._getInitialLanguage("en_AU", self.LANGS)
		self.assertEqual(actual, "en-US")