コード例 #1
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def setUp(self):
     self._address = msgpackrpc.Address('localhost', helper.unused_port())
コード例 #2
0
ファイル: test_msgpackrpc.py プロジェクト: yyf1992/note
 def setUp(self):
     self._address = msgpackrpc.Address('localhost', helper.unused_port())
コード例 #3
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def test_connect_failed(self):
     client = self.setup_env();
     port = helper.unused_port()
     client = msgpackrpc.Client(msgpackrpc.Address('localhost', port), unpack_encoding='utf-8')
     self.assertRaises(error.TransportError, lambda: client.call('hello'))
コード例 #4
0
ファイル: test_msgpackrpc.py プロジェクト: yyf1992/note
 def test_connect_failed(self):
     client = self.setup_env()
     port = helper.unused_port()
     client = msgpackrpc.Client(msgpackrpc.Address('localhost', port),
                                unpack_encoding='utf-8')
     self.assertRaises(error.TransportError, lambda: client.call('hello'))