def test_rate_only_considers_sent_samples(self):
        r = RateMeasurer()
        send_request_rate = 100
        failed_request_rate = 10
        receive_request_rate = 5

        self.send_requests(r, send_request_rate, r.sample_size)
        self.failed_requests(r, failed_request_rate, r.sample_size)
        self.receive_requests(r, receive_request_rate, r.sample_size)

        self.assertEqual(send_request_rate, r.rate())
The rate is based on the number of received requests,
dataset/ETHPy150Open ClusterHQ/flocker/benchmark/scenarios/test/test_rate_measurer.py/RateMeasurerTest.test_rate_only_considers_sent_samples