

def test_should_compute_percentiles_accurately(self):
    ninety_offsets = self.collector.create_offsets(90)
    percentile_value = self.collector.compute_percentile(ninety_offsets, self.fixture_values_a(), 50)
    self.assertEqual(percentile_value, 398.0)

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