def make_inmemorystatepersister(test_case):
    state_persister = InMemoryStatePersister()
    return state_persister, state_persister.get_state
Create a ``InMemoryStatePersister`` for use in tests.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_registry.py/make_inmemorystatepersister