#NEWLINE# @ unittest . skip ( 'deprecated due to performance' ) #NEWLINE# def test_connection_content_matches( self ) : #NEWLINE# #INDENT# ' This test verifies that the content of each connection matches the\n        content in the source. ' #NEWLINE# ignored_cells = [ 'hyp' , 'intestine' ] #NEWLINE# synapse_tuples = set ( ) #NEWLINE# csv_tuples = set ( ) #NEWLINE# synapses = PyOpenWorm . Worm ( ) . get_neuron_network ( ) . synapses ( ) #NEWLINE# for synapse in synapses : #NEWLINE# #INDENT# if ( synapse . syntype ( ) == 'gapJunction' ) : #NEWLINE# #INDENT# syn_type = 'chemical' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# syn_type = 'electrical' #NEWLINE# #UNINDENT# syn_tuple = ( synapse . pre_cell ( ) , synapse . post_cell ( ) , synapse . number ( ) , syn_type ) #NEWLINE# synapse_tuples . add ( syn_tuple ) #NEWLINE# #UNINDENT# with open ( 'OpenWormData/aux_data/herm_full_edgelist.csv' , 'rb' ) as csvfile : #NEWLINE# #INDENT# edge_reader = csv . reader ( csvfile ) #NEWLINE# edge_reader . next ( ) #NEWLINE# for row in edge_reader : #NEWLINE# #INDENT# ( source , target , weight , syn_type ) = map ( str . strip , row ) #NEWLINE# if ( ( source in ignored_cells ) or ( target in ignored_cells ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# csv_tuple = ( source , target , weight , syn_type ) #NEWLINE# csv_tuples . add ( csv_tuple ) #NEWLINE# #UNINDENT# #UNINDENT# self . assertTrue ( csv_tuples . issubset ( synapse_tuples ) )