Beispiel #1
0
 def test_strip_advanced_path_3_locale(self):
     l = "..\\locale"
     self.assertEqual(PathTranslator.strip_locale(l),
                      ".." + os.sep + "locale")
Beispiel #2
0
 def test_strip_advanced_2_locale(self):
     l = "en_EN@calendar=test"
     self.assertEqual(PathTranslator.strip_locale(l), "en_EN")
Beispiel #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")
Beispiel #4
0
 def test_strip_empty_locale(self):
     l = ""
     self.assertEqual(PathTranslator.strip_locale(l), "")
Beispiel #5
0
 def test_strip_arbitrary_locale(self):
     l = "de_DE.UTF-8"
     self.assertEqual(PathTranslator.strip_locale(l), "de_DE")
Beispiel #6
0
 def test_strip_advanced_path_3_locale(self):
     l = "..\\locale"
     self.assertEqual(PathTranslator.strip_locale(l), ".." + os.sep + "locale")      
Beispiel #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")
Beispiel #8
0
 def test_strip_advanced_2_locale(self):
     l = "en_EN@calendar=test"
     self.assertEqual(PathTranslator.strip_locale(l), "en_EN")
Beispiel #9
0
 def test_strip_arbitrary_locale(self):
     l = "de_DE.UTF-8"
     self.assertEqual(PathTranslator.strip_locale(l), "de_DE")
Beispiel #10
0
 def test_strip_empty_locale(self):
     l = ""
     self.assertEqual(PathTranslator.strip_locale(l), "")