Exemplo n.º 1
0
 def fake_request(self,
                  operation,
                  on_success=lambda: None,
                  on_error=lambda: None):
     request = SQuery(Task(self.fake_client()), operation, 1,
                      lambda s: None)
     request.on_error = on_error
     request.on_success = on_success
     return request
Exemplo n.º 2
0
 def query(self,
           service_name,
           operation,
           on_success=lambda: None,
           on_error=lambda: None):
     request = Query(self.a_running_task(), operation, 1, lambda s: None)
     request.on_success = on_success
     request.on_error = on_error
     self.send(request, service_name)
     return request
Exemplo n.º 3
0
 def fake_request(self, operation, on_success=lambda: None, on_error=lambda: None):
     request = SQuery(Task(self.fake_client()), operation, 1, lambda s: None)
     request.on_error = on_error
     request.on_success = on_success
     return request
Exemplo n.º 4
0
 def query(self, service_name, operation, on_success=lambda:None, on_error=lambda:None):
     request = Query(self.a_running_task(), operation, 1, lambda s:None)
     request.on_success = on_success
     request.on_error = on_error
     self.send(request, service_name)
     return request