示例#1
0
 def _new_transport(self):
     return AMQPTransportClient.create_and_connect()
示例#2
0
文件: client.py 项目: jaunis/xivo-bus
 def _new_transport(self):
     return AMQPTransportClient.create_and_connect()
示例#3
0
    def _new_transport(self):
        params = pika.ConnectionParameters(host='localhost')
        transport = AMQPTransportClient(params)

        return transport
示例#4
0
    def test_create_and_connect(self):
        config = Mock(Config)

        AMQPTransportClient.create_and_connect(config)

        config.to_connection_params.assert_called_once_with()
    def test_create_and_connect(self):
        config = Mock(Config)

        AMQPTransportClient.create_and_connect(config)

        config.to_connection_params.assert_called_once_with()