def test_old_samples_are_not_considered(self):
        r = RateMeasurer()
        target_rate = 5

        # Generate samples that will achieve a high request rate
        self.increase_rate(r, target_rate * 2, r.sample_size)

        # Generate samples to lower the request rate to the target rate
        self.increase_rate(r, target_rate, r.sample_size)

        self.assertEqual(target_rate, r.rate())
Old samples should be discarded, meaning that only ``sample_size``
dataset/ETHPy150Open ClusterHQ/flocker/benchmark/scenarios/test/test_rate_measurer.py/RateMeasurerTest.test_old_samples_are_not_considered