def METHOD_NAME(self, config_stub, qtbot, monkeypatch,
                 cookie, ram_jar, url):
    config_stub.val.content.cookies.accept = 'all'
    config_stub.set_str('content.cookies.accept', 'never',
                        pattern=urlmatch.UrlPattern('http://example.com'))
    org_url = QUrl('http://example.org/')
    with qtbot.wait_signal(ram_jar.changed):
        assert ram_jar.setCookiesFromUrl([cookie], org_url)
    assert ram_jar.cookiesForUrl(org_url)
    with qtbot.assert_not_emitted(ram_jar.changed):
        assert not ram_jar.setCookiesFromUrl([cookie], url)
    assert not ram_jar.cookiesForUrl(url)