'Make sure ~ gets expanded correctly.'

@pytest.mark.posix
def test_file_absolute_expanded(self, os_mock):

    os_mock.path.exists.return_value = True
    os_mock.path.isabs.return_value = True
    url = urlutils.fuzzy_url('~/foo')
    assert (url == QUrl(('file://' + os.path.expanduser('~/foo'))))
