@retry_on_loss
  def get_and_delete(self,node):
    try:
      (data,stat) = zookeeper.get(self.handle, node, None)
      zookeeper.delete(self.handle, node, stat["version"])
      return data
    except zookeeper.NoNodeException:
      # Someone deleted the node in between our get and delete
      return None
    except zookeeper.BadVersionException, e:
      # Someone is modifying the queue in place. You can reasonably
      # either retry to re-read the item, or abort.
      print "Queue item %d modified in place, aborting..." % node
      raise e
Test a successful connection with client certificate validation on
dataset/ETHPy150Open andreisavu/zookeeper-mq/experiments/queue.py/ZooKeeperQueue.get_and_delete--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_sslverify.py/OpenSSLOptions.test_successfulCertificateVerification