def METHOD_NAME(self):
    """Weight given as list of lists, when connection rule is all_to_all"""
    src = nest.Create("iaf_psc_alpha", 3)
    tgt = nest.Create("iaf_psc_delta", 2)
    # weight has to be a list of lists with dimension (n_target x n_sources) when all_to_all is used
    ref_weights = [[1.2, -3.5, 2.5], [0.4, -0.2, 0.7]]
    conn_dict = {"rule": "all_to_all"}
    syn_dict = {"weight": ref_weights}
    nest.Connect(src, tgt, conn_dict, syn_dict)
    conns = nest.GetConnections()
    weights = conns.weight
    # Need to flatten ref_weights in order to compare with the weights given by the SynapseCollection.
    ref_weights = [w for sub_weights in ref_weights for w in sub_weights]
    self.assertEqual(weights.sort(), ref_weights.sort())