get_many returns nothing for the dummy cache backend
(self)
| 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" |