예제 #1
0
    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)
예제 #2
0
 def init(self):
     self.market = self.require("sputnik.webserver.plugins.rpc.market.MarketService")
     self.share = router_share_async(self,
             config.get("webserver", "administrator_export"))
예제 #3
0
 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)