#NEWLINE# def _Dynamic_GetSystemStats( self , unused_request , response , unused_request_id ) : #NEWLINE# #INDENT# 'Mock version of System stats always returns fixed values.' #NEWLINE# cpu = response . mutable_cpu ( ) #NEWLINE# if memory . default_cpu : #NEWLINE# #INDENT# cpu . CopyFrom ( self . default_cpu ) #NEWLINE# #UNINDENT# memory = response . mutable_memory ( ) #NEWLINE# if self . default_memory : #NEWLINE# #INDENT# memory . CopyFrom ( self . default_memory ) #NEWLINE# #UNINDENT# self . num_calls [ 'GetSystemStats' ] = ( self . num_calls . get ( 'GetSystemStats' , 0 ) + 1 )