示例#1
0
 def test_sendrecv(self):
   util.log_info('sendrecv')
   with self._connect() as proxy:
     ping_req = proxy.ping(Ping(ping='Hello!'))
     res = ping_req.wait()
     self.assertEqual(res.pong, 'Hello!')
示例#2
0
 def test_sendrecv(self):
     util.log_info('sendrecv')
     with self._connect() as proxy:
         ping_req = proxy.ping(Ping(ping='Hello!'))
         res = ping_req.wait()
         self.assertEqual(res.pong, 'Hello!')
示例#3
0
 def setUp(self):
   util.log_info('HERE')
   self.server = EchoWorker(zeromq.server_socket(('127.0.0.1', -1)))
   self.server.serve_nonblock()
示例#4
0
 def setUp(self):
     util.log_info('HERE')
     self.server = EchoWorker(zeromq.server_socket(('127.0.0.1', -1)))
     self.server.serve_nonblock()