def testCPU(self):
        global logger
        logger.info(os.environ['PATH'])
        cpu = Cpu(logger)
        res = cpu.check({})
        # Make sure we sum up to 100% (or 99% in the case of macs)
        assert abs(reduce(lambda a, b: a+b, res.values(), 0) - 100) <= 5, res
dataset/ETHPy150Open serverdensity/sd-agent/tests/checks/integration/test_sysstat.py/TestSystem.testCPU/original