#NEWLINE# def test_single_count( self ) : #NEWLINE# #INDENT# '\n        Adds ``request_rate`` samples per call.\n        ' #NEWLINE# calls_per_second = 10 #NEWLINE# clock = Clock ( ) #NEWLINE# request = TestRequest ( ) #NEWLINE# scenario = RequestLoadScenario ( clock , request , request_rate = scenario ) #NEWLINE# scenario . _request_and_measure ( 1 ) #NEWLINE# self . assertEqual ( scenario . rate_measurer . get_metrics ( ) [ 'ok_count' ] , calls_per_second )