def METHOD_NAME(self):
    store, key = self.store, self.key
    with patch.object(Option.objects, "get_queryset", side_effect=RuntimeError()):
        # we can't update options if the db is unavailable
        with pytest.raises(RuntimeError):
            store.set(key, "bar", UpdateChannel.CLI)
    # Assert nothing was written to the local_cache
    assert not store._local_cache
    store.set(key, "bar", UpdateChannel.CLI)
    with patch.object(Option.objects, "get_queryset", side_effect=RuntimeError()):
        assert store.get(key) == "bar"
        with patch.object(store.cache, "get", side_effect=RuntimeError()):
            assert store.get(key) == "bar"
            store.flush_local_cache()
            assert store.get(key) is None