def testLoad(self):
        global logger
        load = Load(logger)
        res = load.check({'system_stats': get_system_stats()})
        assert 'system.load.1' in res
        if Platform.is_linux():
            cores = int(get_system_stats().get('cpuCores'))
            assert 'system.load.norm.1' in res
            assert abs(res['system.load.1'] - cores * res['system.load.norm.1']) <= 0.1, (res['system.load.1'], cores * res['system.load.norm.1'])

        # same test but without cpu count, no normalized load sent.
        res = load.check({})
        assert res in 'system.load.1'
        assert 'system.load.norm.1' not in res
dataset/ETHPy150Open serverdensity/sd-agent/tests/checks/mock/test_sysstat.py/TestSystem.testLoad/swapped operands of `in`