Пример #1
0
 def test_sample_overflow_error(self):
     sample = ExponentiallyDecayingSample(Histogram.DEFAULT_SAMPLE_SIZE,
                                          Histogram.DEFAULT_ALPHA)
     sample.start_time = 946681200.0
     histogram = Histogram(sample)
     histogram.update(5)
     self.assertEqual(5, histogram.min)
Пример #2
0
 def test_sample_overflow_error(self):
     sample = ExponentiallyDecayingSample(Histogram.DEFAULT_SAMPLE_SIZE,
                                          Histogram.DEFAULT_ALPHA)
     sample.start_time = 946681200.0
     histogram = Histogram(sample)
     histogram.update(5)
     self.assertEqual(5, histogram.min)