def test_irq_hard_if_previous_value_is_none(self): cpu_util = CoreCpuUtil(1, 1.34, self.__metric_repository) irq_hard = cpu_util.irq_hard() self.assertIsNone(irq_hard)
def test_irq_hard_for_all_cpus(self): cpu_util = CoreCpuUtil(None, 1.34, self.__metric_repository) irq_hard = cpu_util.irq_hard() self.assertEqual(irq_hard, 0.07)
def test_irq_hard(self): cpu_util = CoreCpuUtil(0, 1.34, self.__metric_repository) irq_hard = cpu_util.irq_hard() self.assertEqual(irq_hard, 0.15)
def test_irq_hard_for_all_cpus(self): cpu_util = CoreCpuUtil(None, 1.34, self.__metric_repository) irq_hard = cpu_util.irq_hard() self.assertEqual(irq_hard,0.07)
def test_irq_hard(self): cpu_util = CoreCpuUtil(0, 1.34, self.__metric_repository) irq_hard = cpu_util.irq_hard() self.assertEqual(irq_hard,0.15 )