def make_inmemorystatepersister(test_case):
 state_persister = InMemoryStatePersister()
 return (state_persister, state_persister.get_state)

def make_inmemorystatepersister ( test_case ) : state_persister = InMemoryStatePersister ( ) return ( state_persister , state_persister . get_state )
create a inmemorystatepersister for use in tests .