def METHOD_NAME():
    """
    Test if connecting no-gap junction neurons via a gap junction synapse leads to an error.
    """
    conn_spec = {"rule": "one_to_one", "make_symmetric": True}
    syn_spec = {"synapse_model": "gap_junction"}
    with pytest.raises(nest.kernel.NESTError, match="The source node does not support gap junction output."):
        nest.Connect(pytest.neuron_no_gap, pytest.neuron_no_gap, conn_spec=conn_spec, syn_spec=syn_spec)