Cache deletion is transparently ignored on the dummy cache backend
(self)
| 149 | cache.get_many([class="st">"key with spaces"]) |
| 150 | |
| 151 | def test_delete(self): |
| 152 | class="st">"Cache deletion is transparently ignored on the dummy cache backend" |
| 153 | cache.set_many({class="st">"key1": class="st">"spam", class="st">"key2": class="st">"eggs"}) |
| 154 | self.assertIsNone(cache.get(class="st">"key1")) |
| 155 | self.assertIs(cache.delete(class="st">"key1"), False) |
| 156 | self.assertIsNone(cache.get(class="st">"key1")) |
| 157 | self.assertIsNone(cache.get(class="st">"key2")) |
| 158 | |
| 159 | def test_has_key(self): |
| 160 | class="st">""" |