def setUp(self): from sputnik import zmq_util import random port = random.randint(50000, 60000) self.dealer_proxy = zmq_util.dealer_proxy_async("tcp://127.0.0.1:%d" % port, timeout=None) self.router_share = zmq_util.router_share_async(TestExport(), "tcp://127.0.0.1:%d" % port)
def init(self): self.market = self.require("sputnik.webserver.plugins.rpc.market.MarketService") self.share = router_share_async(self, config.get("webserver", "administrator_export"))