

@patch.object(Collector, 'publish')
def test_should_respect_percentiles_config(self, publish_mock):
    self.collector.update_config({
        'percentiles': '25,75',
    })
    self.collector.interpret_bean_with_list('RecentReadLatencyHistogramMicros', self.fixture_values_a())
    self.assertPublishedMany(publish_mock, {
        'RecentReadLatencyHistogramMicros.p25': self.expected_percentiles_for_fixture_a('p25'),
        'RecentReadLatencyHistogramMicros.p75': self.expected_percentiles_for_fixture_a('p75'),
    })

dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/jolokia/test/testcassandra_jolokia.py TestCassandraJolokiaCollector.test_should_respect_percentiles_config/original