def testCustomJMXMetric(self):
        count = 0
        while self.reporter.metrics is None:
            time.sleep(1)
            count += 1
            if count > 25:
                raise Exception("No metrics were received in 25 seconds")

        metrics = self.reporter.metrics

        self.assertTrue(isinstance(metrics, ListType))
        self.assertTrue(len(metrics) > 0)
        self.assertTrue(len([t for t in metrics if "cassandra.db." in t['metric'] and t['tags'] in "instance:cassandra_instance"]) > 40, metrics)
dataset/ETHPy150Open serverdensity/sd-agent/tests/checks/integration/test_cassandra.py/JMXTestCase.testCustomJMXMetric/swapped operands of `in`