'Helper function that will receive the desired number of requests.
:param rate_measurer: The ``RateMeasurer`` we are testing.
:param num_requests: The number of request we want to receive.
:param num_samples: The number of samples to collect.'

def send_requests(self, rate_measurer, num_requests, num_samples):

    for _ in range(num_samples):
        for _ in range(num_requests):
            rate_measurer.request_sent()
        rate_measurer.update_rate()
