Test suite for checking the key-value API of a BaseStore.
This test suite verifies the basic key-value API of a BaseStore.
The test suite is designed for synchronous key-value stores.
Implementers should subclass this test suite and provide a fixture that returns an empty key-value store for each test.
BaseStoreAsyncTests()Get the key-value store class to test.
The returned key-value store should be EMPTY.
Three example values that will be used in the tests.
Test that the fixture provides three values.
Test that the key-value store is empty.
Test setting and getting values in the key-value store.
Test that the store is still empty.
This test should follow a test that sets values.
This just verifies that the fixture is set up properly to be empty after each test.
Test deleting values from the key-value store.
Test that we can delete several values at once.
Deleting missing keys should not raise an exception.
Setting values by key should be idempotent.
Test that the same value can be retrieved multiple times.
Test that we can overwrite values by key using mset.
Test that we can yield keys from the store.