

def test_should_compute_percentiles_accurately_when_empty(self):
    ninety_offsets = self.collector.create_offsets(90)
    self.assertEqual(self.collector.compute_percentile(ninety_offsets, self.empty_fixture_values(), 50), 0.0)
    self.assertEqual(self.collector.compute_percentile(ninety_offsets, self.empty_fixture_values(), 95), 0.0)
    self.assertEqual(self.collector.compute_percentile(ninety_offsets, self.empty_fixture_values(), 99), 0.0)

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