'The rate is based on the number of received requests,
not the number of sent or failed requests.'

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())
