MCPcopy
hub / github.com/django/django / test_non_existent

Method test_non_existent

tests/cache/tests.py:135–138  ·  view source on GitHub ↗

Nonexistent keys aren't found in the dummy cache backend

(self)

Source from the content-addressed store, hash-verified

133 self.assertIsNone(cache.get("addkey1"))
134
135 def test_non_existent(self):
136 "Nonexistent keys aren't found in the dummy cache backend"
137 self.assertIsNone(cache.get("does_not_exist"))
138 self.assertEqual(cache.get("does_not_exist", "bang!"), "bang!")
139
140 def test_get_many(self):
141 "get_many returns nothing for the dummy cache backend"

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected