Exemplo n.º 1
0
 def setup(self):
     self.connection = Mock()
     self.connection._used_channel_ids = array('H')
     self.connection.channel_max = 65535
     self.connection.client.transport_options = {}
     self.connection.client.port = 303
     self.consul = self.patching('consul.Consul').return_value
     self.channel = Channel(connection=self.connection)
Exemplo n.º 2
0
 def setup(self):
     self.connection = Mock()
     self.connection.client.transport_options = {}
     self.connection.client.port = 303
     self.consul = self.patch('consul.Consul').return_value
     self.channel = Channel(connection=self.connection)