def METHOD_NAME(path, scheme, expected):
    if scheme is not None:
        assert path_to_uri(pathlib.Path(path), scheme) == expected
    else:
        assert path_to_uri(pathlib.Path(path)) == expected