def setUp(self): TestStatsBaseClass.setUp(self) data_to_ignore = dict(exchange=["a.*", "b.*", "c.*"]) conf = Config(self.auth, self.conn, data_to_ignore) self.stats = RabbitMQStats(conf) self.stats.get_vhost_names = Mock() self.stats.get_vhost_names.return_value = ['test_vhost']
def setUp(self): self.conn = ConnectionInfo(host="example.com", port=15672, scheme="http") self.auth = Auth() self.conf = Config(self.auth, self.conn) self.stats = RabbitMQStats(self.conf) self.test_stats = dict(vhost="test_vhost", message_stats=dict( publish_in=10, publish_in_details=dict(rate=0.0), publish_out=10, publish_out_details=dict(rate=0.0)))