コード例 #1
0
ファイル: test_gae_acl.py プロジェクト: aswadrangnekar/tipfy
    def tearDown(self):
        local.__release_local__()
        self.app.config['tipfy']['dev'] = True

        Acl.roles_map = {}
        Acl.roles_lock = CURRENT_VERSION_ID
        _rules_map.clear()
コード例 #2
0
ファイル: test_ext_acl.py プロジェクト: AmirS2/tipfy
    def tearDown(self):
        local.__release_local__()
        self.app.config['tipfy']['dev'] = True

        Acl.roles_map = {}
        Acl.roles_lock = CURRENT_VERSION_ID
        _rules_map.clear()
コード例 #3
0
ファイル: test_utils.py プロジェクト: AmirS2/tipfy
 def tearDown(self):
     local.__release_local__()
コード例 #4
0
ファイル: test_auth.py プロジェクト: AmirS2/tipfy
    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)
コード例 #5
0
 def tearDown(self):
     local.__release_local__()
コード例 #6
0
ファイル: test_gae_xmpp.py プロジェクト: aswadrangnekar/tipfy
    def tearDown(self):
        local.__release_local__()
        fake_local.clear()

        from tipfy.appengine import xmpp
        xmpp.xmpp = self.xmpp_module
コード例 #7
0
ファイル: testing.py プロジェクト: acettt/yandex
 def __exit__(self, type, value, traceback):
     local.__release_local__()
コード例 #8
0
ファイル: test_i18n.py プロジェクト: ksachdeva/tipfy
 def test_translations_not_set(self):
     local.__release_local__()
     self.assertRaises(RuntimeError, i18n.gettext, 'foo')
コード例 #9
0
ファイル: testing.py プロジェクト: aswadrangnekar/tipfy
 def __exit__(self, type, value, traceback):
     local.__release_local__()
コード例 #10
0
 def tearDown(self):
     tipfy.app.APPENGINE = self.appengine
     tipfy.app.DEV_APPSERVER = self.dev_appserver
     local.__release_local__()
コード例 #11
0
ファイル: test_ext_xmpp.py プロジェクト: AmirS2/tipfy
    def tearDown(self):
        local.__release_local__()
        fake_local.clear()

        from tipfy.appengine import xmpp
        xmpp.xmpp = self.xmpp_module
コード例 #12
0
ファイル: test_i18n.py プロジェクト: aswadrangnekar/tipfy
 def test_translations_not_set(self):
     local.__release_local__()
     self.assertRaises(RuntimeError, i18n.gettext, 'foo')