Ejemplo n.º 1
0
 def test_strip_advanced_path_3_locale(self):
     l = "..\\locale"
     self.assertEqual(PathTranslator.strip_locale(l),
                      ".." + os.sep + "locale")
Ejemplo n.º 2
0
 def test_strip_advanced_2_locale(self):
     l = "en_EN@calendar=test"
     self.assertEqual(PathTranslator.strip_locale(l), "en_EN")
Ejemplo n.º 3
0
 def test_strip_advanced_path_2_locale(self):
     l = "..\\en_EN.UTF-8@calendar=test"
     self.assertEqual(PathTranslator.strip_locale(l),
                      ".." + os.sep + "en_EN")
Ejemplo n.º 4
0
 def test_strip_empty_locale(self):
     l = ""
     self.assertEqual(PathTranslator.strip_locale(l), "")
Ejemplo n.º 5
0
 def test_strip_arbitrary_locale(self):
     l = "de_DE.UTF-8"
     self.assertEqual(PathTranslator.strip_locale(l), "de_DE")
Ejemplo n.º 6
0
 def test_strip_advanced_path_3_locale(self):
     l = "..\\locale"
     self.assertEqual(PathTranslator.strip_locale(l), ".." + os.sep + "locale")      
Ejemplo n.º 7
0
 def test_strip_advanced_path_2_locale(self):
     l = "..\\en_EN.UTF-8@calendar=test"
     self.assertEqual(PathTranslator.strip_locale(l), ".." + os.sep + "en_EN")
Ejemplo n.º 8
0
 def test_strip_advanced_2_locale(self):
     l = "en_EN@calendar=test"
     self.assertEqual(PathTranslator.strip_locale(l), "en_EN")
Ejemplo n.º 9
0
 def test_strip_arbitrary_locale(self):
     l = "de_DE.UTF-8"
     self.assertEqual(PathTranslator.strip_locale(l), "de_DE")
Ejemplo n.º 10
0
 def test_strip_empty_locale(self):
     l = ""
     self.assertEqual(PathTranslator.strip_locale(l), "")