#NEWLINE# def check_spike_monitor( self , res , monitor ) : #NEWLINE# #INDENT# self . assertTrue ( comp . nested_equal ( monitor . num_spikes , res . num_spikes ) ) #NEWLINE# self . assertTrue ( comp . nested_equal ( str ( monitor . source ) , res . source ) ) #NEWLINE# self . assertEqual ( monitor . name , res . name ) #NEWLINE# self . assertTrue ( comp . nested_equal ( monitor . t [ : ] , res . t ) ) #NEWLINE# self . assertTrue ( comp . nested_equal ( monitor . i [ : ] , res . i ) ) #NEWLINE# for ( idx , varname ) in enumerate ( monitor . record_variables ) : #NEWLINE# #INDENT# self . assertTrue ( comp . nested_equal ( getattr ( monitor , varname ) [ : ] , res . f_get ( varname ) ) )