def testToStatus(self): "utils.to_status()" assert 'OK' == samutils.to_status(0) assert 'WARNING' == samutils.to_status(1) assert 'CRITICAL' == samutils.to_status(2) assert 'UNKNOWN' == samutils.to_status(3) assert 'UNKNOWN' == samutils.to_status(-1) assert 'UNKNOWN' == samutils.to_status('foo')