MCPcopy
hub / github.com/django/django / test_set_many_invalid_key

Method test_set_many_invalid_key

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

Source from the content-addressed store, hash-verified

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"
247 with self.assertWarnsMessage(CacheKeyWarning, msg):
248 cache.set_many({"key with spaces": "foo"})
249
250 def test_delete_many(self):
251 "delete_many does nothing for the dummy cache backend"

Callers

nothing calls this directly

Calls 2

assertWarnsMessageMethod · 0.80
set_manyMethod · 0.45

Tested by

no test coverage detected