def METHOD_NAME():
    """
    Test if connecting gap junction neurons via a gap junction synapse via
    a nonsymmetric connection rule leads to an error.
    """
    conn_spec = {"rule": "one_to_one", "make_symmetric": False}
    syn_spec = {"synapse_model": "gap_junction", "weight": 2.0}
    with pytest.raises(
        nest.kernel.NESTError,
        match="Connections with this synapse model can only be created as "
        + 'one-to-one connections with "make_symmetric" set to true *',
    ):
        nest.Connect(pytest.neuron_gap, pytest.neuron_gap, conn_spec=conn_spec, syn_spec=syn_spec)