Exemple #1
0
 def test_logic_part3(self):
     self.assertIs(map_language('ary'), self.moroccan)
     self.assertIs(languages.part3['ary'], self.moroccan)
     self.assertIs(languages.get(part3='ary'), self.moroccan)
     self.assertIs(map_language('Moroccan Arabic'), self.moroccan)
     self.assertIs(map_language('Tzeltal'), self.tzeltal)
     self.assertIs(map_language('Tzeltal, Tenejapa'), self.tzeltal)
     self.assertIs(map_language('tzh'), self.tzeltal)
Exemple #2
0
 def test_logic_part3(self):
     self.assertIs(map_language('ary'), self.moroccan)
     self.assertIs(languages.part3['ary'], self.moroccan)
     self.assertIs(languages.get(part3='ary'), self.moroccan)
     self.assertIs(map_language('Moroccan Arabic'), self.moroccan)
     self.assertIs(map_language('Tzeltal'), self.tzeltal)
     self.assertIs(map_language('Tzeltal, Tenejapa'), self.tzeltal)
     self.assertIs(map_language('tzh'), self.tzeltal)
Exemple #3
0
 def test_logic_3_char_code(self):
     self.assertIs(map_language('Eng'), self.english)
     self.assertIs(map_language('eNg'), self.english)
     self.assertIs(map_language('enG'), self.english)
     self.assertIs(map_language('ENG'), self.english)
     self.assertIs(map_language('eng'), self.english)
     self.assertIs(map_language('zho'), self.chinese)
     self.assertIs(map_language('chi'), self.chinese)
     self.assertIs(map_language('ara'), self.arabic)
Exemple #4
0
 def test_logic_3_char_code(self):
     self.assertIs(map_language('Eng'), self.english)
     self.assertIs(map_language('eNg'), self.english)
     self.assertIs(map_language('enG'), self.english)
     self.assertIs(map_language('ENG'), self.english)
     self.assertIs(map_language('eng'), self.english)
     self.assertIs(map_language('zho'), self.chinese)
     self.assertIs(map_language('chi'), self.chinese)
     self.assertIs(map_language('ara'), self.arabic)
Exemple #5
0
 def test_logic_name(self):
     self.assertIs(map_language('english'), self.english)
     self.assertIs(map_language('English'), self.english)
     self.assertIs(map_language('eNgLiSh'), self.english)
     self.assertIs(map_language('ENGLISH'), self.english)
     self.assertIs(map_language('Arabic, Moroccan'), self.moroccan)
     self.assertIs(map_language('Arabic, Moroccan Spoken'), self.arabic)
Exemple #6
0
 def test_logic_name(self):
     self.assertIs(map_language('english'), self.english)
     self.assertIs(map_language('English'), self.english)
     self.assertIs(map_language('eNgLiSh'), self.english)
     self.assertIs(map_language('ENGLISH'), self.english)
     self.assertIs(map_language('Arabic, Moroccan'), self.moroccan)
     self.assertIs(map_language('Arabic, Moroccan Spoken'), self.arabic)
Exemple #7
0
 def test_logic_part2(self):
     self.assertEqual(map_language('Moroccan Arabic', False).name, 'Arabic')
Exemple #8
0
 def test_logic_locale(self):
     self.assertIs(map_language('En_Us'), self.english)
     self.assertIs(map_language('EN_US'), self.english)
     self.assertIs(map_language('en_us'), self.english)
Exemple #9
0
 def test_logic_2_char_code(self):
     self.assertIs(map_language('En'), self.english)
     self.assertIs(map_language('EN'), self.english)
     self.assertIs(map_language('eN'), self.english)
     self.assertIs(map_language('en'), self.english)
Exemple #10
0
 def test_logic_part2(self):
     self.assertEqual(map_language('Moroccan Arabic', False).name, 'Arabic')
Exemple #11
0
 def test_logic_locale(self):
     self.assertIs(map_language('En_Us'), self.english)
     self.assertIs(map_language('EN_US'), self.english)
     self.assertIs(map_language('en_us'), self.english)
Exemple #12
0
 def test_logic_2_char_code(self):
     self.assertIs(map_language('En'), self.english)
     self.assertIs(map_language('EN'), self.english)
     self.assertIs(map_language('eN'), self.english)
     self.assertIs(map_language('en'), self.english)