def setUp(self): self.ip = '127.0.0.1' self.response_key = 'result' self.kvs_client = kvs_client.MockAnnaClient() self.socket = zmq_utils.MockZmqSocket() self.pusher_cache = zmq_utils.MockPusherCache() self.user_library = CloudburstUserLibrary(zmq_utils.MockZmqContext(), self.pusher_cache, self.ip, 0, self.kvs_client)
def setUp(self): self.kvs_client = kvs_client.MockAnnaClient() self.socket = zmq_utils.MockZmqSocket() self.pusher_cache = zmq_utils.MockPusherCache() self.ip = '127.0.0.1' self.status = ThreadStatus() self.status.ip = self.ip self.status.tid = 0 self.status.running = True self.pinned_functions = {} self.runtimes = {} self.exec_counts = {} self.user_library = CloudburstUserLibrary(zmq_utils.MockZmqContext(), self.pusher_cache, self.ip, 0, self.kvs_client)