

@patch.object(Collector, 'publish')
def test_should_respect_histogram_regex_config(self, publish_mock):
    self.collector.update_config({
        'histogram_regex': '^WackyMetric',
    })
    self.collector.interpret_bean_with_list('WackyMetricSeventeen', self.fixture_values_a())
    self.assertPublishedMany(publish_mock, {
        'WackyMetricSeventeen.p50': self.expected_percentiles_for_fixture_a('p50'),
        'WackyMetricSeventeen.p95': publish_mock.expected_percentiles_for_fixture_a('p95'),
        'WackyMetricSeventeen.p99': self.expected_percentiles_for_fixture_a('p99'),
    })

dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/jolokia/test/testcassandra_jolokia.py TestCassandraJolokiaCollector.test_should_respect_histogram_regex_config/VarMisuse@73/147 `self`->`publish_mock`