Ejemplo n.º 1
0
 def test_english_hebrew_mix_rtl_with_delimiters(self):
     self.assertTrue(bidi.is_text_rtl(u'one (((שתיים (שלוש) ארבע)))))))))))))))))) five'))
Ejemplo n.º 2
0
 def test_english_hebrew_mix_rtl(self):
     self.assertTrue(bidi.is_text_rtl(u'one שתיים שלוש ארבע five'))
Ejemplo n.º 3
0
 def test_hebrew_only(self):
     self.assertTrue(bidi.is_text_rtl(u'אחד שניים שלוש ארבע'))
     self.assertTrue(bidi.is_text_rtl(u'אחד (שניים) שלוש ארבע'))
     self.assertTrue(bidi.is_text_rtl(u'אחד (שניים שלוש) ארבע'))
Ejemplo n.º 4
0
 def test_english_hebrew_mix_non_rtl(self):
     self.assertFalse(bidi.is_text_rtl(u'one two שלוש four'))
Ejemplo n.º 5
0
 def test_english_only(self):
     self.assertFalse(bidi.is_text_rtl(u'one two three four'))
     self.assertFalse(bidi.is_text_rtl(u'one (two) three four'))
     self.assertFalse(bidi.is_text_rtl(u'one (two three) four'))