Test that a basic fetch retrieves the correct value.
(mock_redis_cache)
| 248 | |
| 249 | |
| 250 | def test_basic_fetch(mock_redis_cache): |
| 251 | """ |
| 252 | Test that a basic fetch retrieves the correct value. |
| 253 | """ |
| 254 | redis_server = redis_cache.__context__["cache.redis"]["client"] |
| 255 | |
| 256 | redis_cache.store("minions/myhost", "grain", {"os": "Linux"}) |
| 257 | |
| 258 | assert {"os": "Linux"} == redis_cache.fetch("minions/myhost", "grain") |
| 259 | |
| 260 | |
| 261 | def test_basic_updated(mock_redis_cache): |