def make_remotestatepersister(test_case):
 clock = Clock()
 (control_amp_service, client) = make_loopback_control_client(test_case, reactor=clock)
 persistence_service = control_amp_service.configuration_service
 return (RemoteStatePersister(client=client), (lambda : persistence_service.get().persistent_state))

def make_remotestatepersister ( test_case ) : clock = Clock ( ) ( control_amp_service , client ) = make_loopback_control_client ( test_case , reactor = clock ) persistence_service = control_amp_service . configuration_service return ( RemoteStatePersister ( client = client ) , ( lambda : persistence_service . get ( ) . persistent_state ) )
create a remotestatepersister for use in tests .