def tearDown(self): local.__release_local__() self.app.config['tipfy']['dev'] = True Acl.roles_map = {} Acl.roles_lock = CURRENT_VERSION_ID _rules_map.clear()
def tearDown(self): local.__release_local__()
def tearDown(self): local.__release_local__() os.environ.pop('USER_EMAIL', None) os.environ.pop('USER_ID', None) os.environ.pop('USER_IS_ADMIN', None)
def tearDown(self): local.__release_local__() fake_local.clear() from tipfy.appengine import xmpp xmpp.xmpp = self.xmpp_module
def __exit__(self, type, value, traceback): local.__release_local__()
def test_translations_not_set(self): local.__release_local__() self.assertRaises(RuntimeError, i18n.gettext, 'foo')
def tearDown(self): tipfy.app.APPENGINE = self.appengine tipfy.app.DEV_APPSERVER = self.dev_appserver local.__release_local__()