def METHOD_NAME(self):
    """Test dump connections between different layers."""
    cdict = {"rule": "pairwise_bernoulli", "p": 1.0}
    nest.ResetKernel()
    pos = nest.spatial.grid(shape=[1, 1], extent=[2.0, 2.0], edge_wrap=True)
    l1 = nest.Create("iaf_psc_alpha", positions=pos)
    l2 = nest.Create("iaf_psc_alpha", positions=pos)
    nest.Connect(l1, l2, cdict)
    print("Num. connections:", nest.num_connections)
    filename = os.path.join(self.nest_tmpdir(), "test_DumpConns.out.cnn")
    nest.DumpLayerConnections(l1, l2, "static_synapse", filename)
    print("filename:", filename)
    npa = np.genfromtxt(filename)
    reference = np.array([1.0, 2.0, 1.0, 1.0, 0.0, 0.0])
    self.assertTrue(np.array_equal(npa, reference))
    os.remove(filename)