def METHOD_NAME(self):
    conn_params = self.conn_dict.copy()
    conn_params["allow_multapses"] = False
    N = 10
    # test that multapses must be permitted
    nest.ResetKernel()
    pop = nest.Create("iaf_psc_alpha", N)
    with self.assertRaises(nest.kernel.NESTError):
        nest.Connect(pop, pop, conn_params)
    # test that multapses can only arise from symmetric
    # connectivity
    conn_params["p"] = 1.0 - 1.0 / N
    conn_params["allow_multapses"] = True
    nest.ResetKernel()
    pop = nest.Create("iaf_psc_alpha", N)
    nest.Connect(pop, pop, conn_params)
    conn_dict = collections.defaultdict(int)
    conn = nest.GetConnections()
    for s_t_key in zip(conn.sources(), conn.targets()):
        conn_dict[s_t_key] += 1
        self.assertTrue(conn_dict[s_t_key] <= 2)