def test_min(self): h = Health(node1_id, self.config) for i in range(0, 1000): h.capture() self.assertLessEqual(0.0, h.min("cpu.load", time.time()-100))
def test_avg(self): h = Health(node1_id, self.config) for i in range(0, 1000): h.capture() self.assertLess(0, h.avg("cpu.load", time.time()-100))
def test_avg(self): h = Health(node1_id, self.config) for i in range(0, 1000): h.capture() self.assertLess(0, h.avg("cpu.load", time.time() - 100))
def test_min(self): h = Health(node1_id, self.config) for i in range(0, 1000): h.capture() self.assertLessEqual(0.0, h.min("cpu.load", time.time() - 100))
def test_capture_heartbeat(self): h = Health(node1_id, self.config) h.capture()
def test_create(self): h = Health(node1_id, self.config)