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

Method test_delete

tests/cache/tests.py:151–157  ·  tests/cache/tests.py::DummyCacheTests.test_delete

Cache deletion is transparently ignored on the dummy cache backend

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

set_manyMethod · 0.45
getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected