MCPcopy
hub / github.com/django/django / test_set_many

Method test_set_many

tests/cache/tests.py:240–243  ·  view source on GitHub ↗

set_many does nothing for the dummy cache backend

(self)

Source from the content-addressed store, hash-verified

238 self.assertIsNone(cache.get(key))
239
240 def test_set_many(self):
241 "set_many does nothing for the dummy cache backend"
242 self.assertEqual(cache.set_many({"a": 1, "b": 2}), [])
243 self.assertEqual(cache.set_many({"a": 1, "b": 2}, timeout=2, version="1"), [])
244
245 def test_set_many_invalid_key(self):
246 msg = KEY_ERRORS_WITH_MEMCACHED_MSG % ":1:key with spaces"

Callers

nothing calls this directly

Calls 1

set_manyMethod · 0.45

Tested by

no test coverage detected