def test_statusYellow(self):
        stats = """{"status": "yellow"}"""
        data = simplejson.loads(stats)
        self.collector.flatten(data)
        self.result = self.collector.protocol.output

        self.assertEqual(0, self.result['es.cluster.status.green'][0])
        self.assertEqual(1, self.result['es.cluster.status.yellow'][0])
        self.assertEqual(0, self.result['es.cluster.status.red'][0])
For status yellow to other metrics are 0.
dataset/ETHPy150Open mochi/vor/vor/test/test_elasticsearch.py/ElasticSearchHealthGraphiteServiceTest.test_statusYellow