def test_strip_advanced_path_3_locale(self): l = "..\\locale" self.assertEqual(PathTranslator.strip_locale(l), ".." + os.sep + "locale")
def test_strip_advanced_2_locale(self): l = "en_EN@calendar=test" self.assertEqual(PathTranslator.strip_locale(l), "en_EN")
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")
def test_strip_empty_locale(self): l = "" self.assertEqual(PathTranslator.strip_locale(l), "")
def test_strip_arbitrary_locale(self): l = "de_DE.UTF-8" self.assertEqual(PathTranslator.strip_locale(l), "de_DE")