Exemple #1
0
 def test_arabic_to_english(self):
     arabic = u"\u0645\u0631\u062d\u0628\u0627"
     english = "marhaban"
     pattern = gtap(arabic, from_="arabic", to_="english")
     self.assertTrue(match(pattern, english))
Exemple #2
0
 def test_arabic_to_english(self):
     arabic = u"\u0645\u0631\u062d\u0628\u0627"
     english = "marhaban"
     pattern = gtap(arabic, from_="arabic", to_="english")
     self.assertTrue(match(pattern, english))
Exemple #3
0
 def test_english_to_arabic(self):
     arabic = u"\u0645\u0631\u062d\u0628\u0627"
     english = "marhaban"
     pattern = gtap(english, from_="english", to_="arabic")
     self.assertTrue(match(pattern, arabic))
Exemple #4
0
 def test_english_to_arabic(self):
     arabic = u"\u0645\u0631\u062d\u0628\u0627"
     english = "marhaban"
     pattern = gtap(english, from_="english", to_="arabic")
     self.assertTrue(match(pattern, arabic))