'Test with a resource that does not exist.'

def test_nonexisting_resource(self, caplog):

    with caplog.at_level(logging.WARNING, 'misc'):
        with pytest.raises(qutescheme.QuteSchemeError):
            qutescheme.data_for_url(QUrl('qute://pdfjs/no/file.html'))
    assert (len(caplog.records) == 1)
    assert (caplog.records[0].message == 'pdfjs    resource    requested    but    not    found:    /no/file.html')
