'Test thresholds classes'

@unittest.skipIf(PY3, True)
@unittest.skipIf(PY_PYPY, True)
def test_094_thresholds(self):

    print 'INFO:    [TEST_094]    Thresholds'
    ok = GlancesThresholdOk()
    careful = GlancesThresholdCareful()
    warning = GlancesThresholdWarning()
    critical = GlancesThresholdCritical()
    self.assertTrue((ok < careful))
    self.assertTrue((careful < warning))
    self.assertTrue((warning < critical))
    self.assertFalse((ok > careful))
    self.assertTrue((ok == ok))
    self.assertTrue((str(ok) == 'OK'))
    thresholds = GlancesThresholds()
    thresholds.add('cpu_percent', 'OK')
    self.assertTrue((thresholds.get(stat_name='cpu_percent').description() == 'OK'))
