MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / test_keys

Method test_keys

test/test_redis_cache.py:47–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 self.assertIsNone(self.redis_cache.get('key'))
46
47 def test_keys(self):
48 self.redis_cache.set('key1', 'value1', 10)
49 self.redis_cache.set('key2', 'value2', 10)
50 keys = self.redis_cache.keys('*')
51 self.assertIn('key1', keys)
52 self.assertIn('key2', keys)
53
54 def tearDown(self):
55 # self.redis_cache._redis_client.flushdb() # Clear redis database

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected