def METHOD_NAME(self, config_stub, qtbot, monkeypatch,
                cookie, ram_jar, url):
    """Test setCookiesFromUrl with cookies enabled."""
    config_stub.val.content.cookies.accept = 'all'
    with qtbot.wait_signal(ram_jar.changed):
        assert ram_jar.setCookiesFromUrl([cookie], url)
    # assert the cookies are added correctly
    all_cookies = ram_jar.cookiesForUrl(url)
    assert len(all_cookies) == 1
    saved_cookie = all_cookies[0]
    expected = cookie.name(), cookie.value()
    assert saved_cookie.name(), saved_cookie.value() == expected