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())
Implementation of * operator, allows use of C{expr * 3} in place of
dataset/ETHPy150Open ClusterHQ/flocker/benchmark/scenarios/test/test_rate_measurer.py/RateMeasurerTest.test_old_samples_are_not_considered--crossover with--dataset/ETHPy150Open pypa/pip/pip/_vendor/pyparsing.py/ParserElement.__mul__