Ejemplo n.º 1
0
    def test_no_connection(self):
        connection = pop_connection()

        cache_manager = CacheManager()

        @cache_manager.cache
        def testfunc(a):
            return u'Cached "%s"' % unicode(a)

        val = testfunc('TEST')

        assert connection.get('cache:testfunc:TEST') is None
Ejemplo n.º 2
0
 def tearDown(self):
     pop_connection()