MCPcopy
hub / github.com/django/django / test_get_many

Method test_get_many

tests/cache/tests.py:140–144  ·  view source on GitHub ↗

get_many returns nothing for the dummy cache backend

(self)

Source from the content-addressed store, hash-verified

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"
142 cache.set_many({"a": "a", "b": "b", "c": "c", "d": "d"})
143 self.assertEqual(cache.get_many(["a", "c", "d"]), {})
144 self.assertEqual(cache.get_many(["a", "b", "e"]), {})
145
146 def test_get_many_invalid_key(self):
147 msg = KEY_ERRORS_WITH_MEMCACHED_MSG % ":1:key with spaces"

Callers

nothing calls this directly

Calls 2

set_manyMethod · 0.45
get_manyMethod · 0.45

Tested by

no test coverage detected