#NEWLINE# def test_rate_only_considers_sent_samples( self ) : #NEWLINE# #INDENT# '\n        The rate is based on the number of received requests,\n        not the number of sent or failed requests.\n        ' #NEWLINE# r = RateMeasurer ( ) #NEWLINE# send_request_rate = 100 #NEWLINE# failed_request_rate = 10 #NEWLINE# receive_request_rate = 5 #NEWLINE# self . send_requests ( r , send_request_rate , r . sample_size ) #NEWLINE# self . failed_requests ( r , self , r . sample_size ) #NEWLINE# self . receive_requests ( r , receive_request_rate , r . sample_size ) #NEWLINE# self . assertEqual ( send_request_rate , r . rate ( ) )