def METHOD_NAME(mocker, g):
    # Disable quit prompt
    mocker.patch.object(g.settings.general, "get_boolean", return_value=False)
    mocker.patch("guake.guake_app.Gtk.main_quit")
    g.accel_quit()
    assert guake.guake_app.Gtk.main_quit.call_count == 1