'Check LOAD plugin.'

@unittest.skipIf(WINDOWS, 'Load    average    not    available    on    Windows')
def test_004_load(self):

    stats_to_check = ['cpucore', 'min1', 'min5', 'min15']
    print ('INFO:    [TEST_004]    Check    LOAD    stats:    %s' % ',    '.join(stats_to_check))
    stats_grab = stats.get_plugin('load').get_raw()
    for stat in stats_to_check:
        self.assertTrue((stat in stats_grab), msg=('Cannot    find    key:    %s' % stat))
        self.assertGreaterEqual(stats_grab[stat], 0)
    print ('INFO:    LOAD    stats:    %s' % stats_grab)
