MCPcopy
hub / github.com/tornadoweb/tornado / setUp

Method setUp

tornado/test/locale_test.py:19–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 tornado.locale.Locale._cache = {}
18
19 def setUp(self):
20 self.saved = {} # type: dict
21 for var in TranslationLoaderTest.SAVE_VARS:
22 self.saved[var] = getattr(tornado.locale, var)
23 self.clear_locale_cache()
24
25 def tearDown(self):
26 for k, v in self.saved.items():

Callers

nothing calls this directly

Calls 1

clear_locale_cacheMethod · 0.95

Tested by

no test coverage detected