

@patch.object(Collector, 'publish')
def test_should_collect_metrics_histogram_attributes(self, publish_mock):
    self.collector.interpret_bean_with_list('RecentReadLatencyHistogramMicros', self.fixture_values_a())
    self.assertPublishedMany(publish_mock, {
        'RecentReadLatencyHistogramMicros.p50': self.expected_percentiles_for_fixture_a('p50'),
        'RecentReadLatencyHistogramMicros.p95': self.expected_percentiles_for_fixture_a('p95'),
        'RecentReadLatencyHistogramMicros.p99': self.expected_percentiles_for_fixture_a('p99'),
    })

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