'Test with relative=True and cwd unset.'

def test_file_relative(self, os_mock):

    os_mock.path.exists.return_value = True
    os_mock.path.abspath.return_value = 'abs_path'
    os_mock.path.isabs.return_value = False
    url = urlutils.fuzzy_url('foo', relative=True)
    os_mock.path.exists.assert_called_once_with('abs_path')
    assert (url == QUrl('file:abs_path'))
