MCPcopy
hub / github.com/django/django / test_simple

Method test_simple

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

Source from the content-addressed store, hash-verified

332 cache.clear()
333
334 def test_simple(self):
335 # Simple cache set/get works
336 cache.set("key", "value")
337 self.assertEqual(cache.get("key"), "value")
338
339 def test_default_used_when_none_is_set(self):
340 """If None is cached, get() returns it instead of the default."""

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected