MCPcopy
hub / github.com/django/django / test_clear

Method test_clear

tests/cache/tests.py:619–624  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

617 self.assertIsNone(cache.delete_many([]))
618
619 def test_clear(self):
620 # The cache can be emptied using clear
621 cache.set_many({"key1": "spam", "key2": "eggs"})
622 cache.clear()
623 self.assertIsNone(cache.get("key1"))
624 self.assertIsNone(cache.get("key2"))
625
626 def test_long_timeout(self):
627 """

Callers

nothing calls this directly

Calls 3

set_manyMethod · 0.45
clearMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected