Beispiel #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")
Beispiel #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")
Beispiel #3
0
 def test_fullLangPrimaryMatch(self):
     actual = uwpOcr._getInitialLanguage("en_AU", self.LANGS)
     self.assertEqual(actual, "en-US")
Beispiel #4
0
	def test_fullLangPrimaryMatch(self):
		actual = uwpOcr._getInitialLanguage("en_AU", self.LANGS)
		self.assertEqual(actual, "en-US")