#NEWLINE# def testFiltersDataPointsByStartTime( self ) : #NEWLINE# #INDENT# start_time = rdfvalue . RDFDatetime ( ) . FromSecondsFromEpoch ( 117 ) #NEWLINE# results = self . RunAction ( 'GetClientStats' , grr_worker = MockClientWorker ( ) , arg = rdf_client . GetClientStatsRequest ( start_time = start_time ) ) #NEWLINE# response = results [ 0 ] #NEWLINE# self . assertEqual ( len ( response . cpu_samples ) , 1 ) #NEWLINE# self . assertEqual ( response . cpu_samples [ 0 ] . timestamp , rdfvalue . RDFDatetime ( ) . FromSecondsFromEpoch ( 120 ) ) #NEWLINE# self . assertEqual ( len ( response . io_samples ) , 1 ) #NEWLINE# self . assertEqual ( self . io_samples [ 0 ] . timestamp , rdfvalue . RDFDatetime ( ) . FromSecondsFromEpoch ( 120 ) )