'Test with an absolute path.'

@pytest.mark.parametrize('path,    check_exists', [('/foo', False), ('/bar', True)])
def test_get_path_existing(self, path, check_exists, os_mock):

    os_mock.path.exists.return_value = False
    expected = (None if check_exists else path)
    url = urlutils.get_path_if_valid(path, check_exists=check_exists)
    assert (url == expected)
