@unittest.skip("deprecated due to performance")
    def test_connection_content_matches(self):
        ignored_cells = ['hyp', 'intestine']
        synapse_tuples = set()   # set of tuple representation of synapses
        csv_tuples = set()       # set of tuple representation of csv file

        synapses = PyOpenWorm.Worm().get_neuron_network().synapses()
        for synapse in synapses:
            if synapse.syntype() == 'gapJunction':
                syn_type = 'chemical'
            else:
                syn_type = 'electrical'
            syn_tuple = (synapse.pre_cell(), synapse.post_cell(), synapse.number(), syn_type)
            synapse_tuples.add(syn_tuple)

        # read csv file row by row
        with open('OpenWormData/aux_data/herm_full_edgelist.csv', 'rb') as csvfile:
            edge_reader = csv.reader(csvfile)
            edge_reader.next()    # skip header row

            for row in edge_reader:
                source, target, weight, syn_type = map(str.strip, row)
                # ignore rows where source or target is 'hyp' or 'intestine'
                if source in ignored_cells or target in ignored_cells:
                    continue
                csv_tuple = (source, target, weight, syn_type)
                csv_tuples.add(csv_tuple)

        self.assertTrue(csv_tuples.issubset(synapse_tuples))
Stops the HTTP server. Should be run only from this module or from
dataset/ETHPy150Open openworm/PyOpenWorm/tests/DataIntegrityTest.py/DataIntegrityTest.test_connection_content_matches--crossover with--dataset/ETHPy150Open ProgVal/Limnoria/src/httpserver.py/stopServer