MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_csv

Method test_csv

python/python3/tornado/test/locale_test.py:30–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 self.clear_locale_cache()
29
30 def test_csv(self):
31 tornado.locale.load_translations(
32 os.path.join(os.path.dirname(__file__), "csv_translations")
33 )
34 locale = tornado.locale.get("fr_FR")
35 self.assertTrue(isinstance(locale, tornado.locale.CSVLocale))
36 self.assertEqual(locale.translate("school"), u"\u00e9cole")
37
38 def test_csv_bom(self):
39 with open(

Callers

nothing calls this directly

Calls 3

joinMethod · 0.80
getMethod · 0.45
translateMethod · 0.45

Tested by

no test coverage detected