Remove the last entry in the cache.
(mock_redis_cache)
| 270 | |
| 271 | |
| 272 | def test_remove_single(mock_redis_cache): |
| 273 | """ |
| 274 | Remove the last entry in the cache. |
| 275 | """ |
| 276 | redis_server = redis_cache.__context__["cache.redis"]["client"] |
| 277 | |
| 278 | redis_cache.store("minions/myhost", "grain", {"os": "Linux"}) |
| 279 | redis_cache.flush("minions/myhost", "grain") |
| 280 | |
| 281 | expected = {} |
| 282 | assert expected == redis_server.db |
| 283 | |
| 284 | |
| 285 | def test_remove_remaining(mock_redis_cache): |