Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/c/o/commons-HEAD/src/python/twitter/common/zookeeper/test_server.py   commons(Download)
 
from gen.twitter.common.zookeeper.testing.angrybird import ZooKeeperThriftServer
from gen.twitter.common.zookeeper.testing.angrybird.ttypes import (
  ExpireSessionRequest,
  ResponseCode)
        raise self.Error('No Zookeeper client available!')
      session_id, _ = zookeeper.client_id(self._zh)
    expireResponse = self.angrybird.expireSession(ExpireSessionRequest(sessionId=session_id))
    return expireResponse.responseCode == ResponseCode.OK