MCPcopy
hub / github.com/django/django / test_get_many_invalid_key

Method test_get_many_invalid_key

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

Source from the content-addressed store, hash-verified

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"
148 with self.assertWarnsMessage(CacheKeyWarning, msg):
149 cache.get_many(["key with spaces"])
150
151 def test_delete(self):
152 "Cache deletion is transparently ignored on the dummy cache backend"

Callers

nothing calls this directly

Calls 2

assertWarnsMessageMethod · 0.80
get_manyMethod · 0.45

Tested by

no test coverage detected