(self)
| 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( |