def METHOD_NAME(self):
    """
    Error handling for collocated synapses in conngen Connect
    """
    nest.ResetKernel()
    # Create a plain connection set
    cg = csa.cset(csa.oneToOne)
    connspec = {"rule": "conngen", "cg": cg}
    synspec = nest.CollocatedSynapses({"weight": -2.0}, {"weight": 2.0})
    pop = nest.Create("iaf_psc_alpha", 3)
    self.assertRaisesRegex(nest.kernel.NESTError, "BadProperty", nest.Connect, pop, pop, connspec, synspec)