'Test with an absolute path.'

@pytest.mark.parametrize('path,    expected', [('/foo', QUrl('file:///foo')), ('/bar\n', QUrl('file:///bar'))])
def test_file_absolute(self, path, expected, os_mock):

    os_mock.path.exists.return_value = True
    os_mock.path.isabs.return_value = True
    url = urlutils.fuzzy_url(path)
    assert (url == expected)
