def test_should_return_cache_by_path(self): from redisdb.compat import get_cache client = get_cache('redisdb.backends.RedisRing', DB=0) self.assertIsInstance(client, RedisRing)
def test_should_return_cache_by_alias(self): from redisdb.compat import get_cache client = get_cache('redis_ring') self.assertIsInstance(client, RedisRing)