MCPcopy
hub / github.com/django/django / test_delete

Method test_delete

tests/cache/tests.py:151–157  ·  view source on GitHub ↗

Cache deletion is transparently ignored on the dummy cache backend

(self)

Source from the content-addressed store, hash-verified

149 cache.get_many(["key with spaces"])
150
151 def test_delete(self):
152 "Cache deletion is transparently ignored on the dummy cache backend"
153 cache.set_many({"key1": "spam", "key2": "eggs"})
154 self.assertIsNone(cache.get("key1"))
155 self.assertIs(cache.delete("key1"), False)
156 self.assertIsNone(cache.get("key1"))
157 self.assertIsNone(cache.get("key2"))
158
159 def test_has_key(self):
160 """

Callers

nothing calls this directly

Calls 3

set_manyMethod · 0.45
getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected