def METHOD_NAME(
    root: ProjectPackage, repo: Repository, pool: RepositoryPool
) -> None:
    root.add_dependency(Factory.create_dependency("foo", "^1.0"))
    foo_100 = Package(
        "foo", "1.0.0", source_type="legacy", source_url="http://example.com"
    )
    foo_101 = Package(
        "foo", "1.0.1", source_type="legacy", source_url="http://example.com"
    )
    repo.add_package(foo_100)
    repo.add_package(foo_101)
    provider = Provider(root, pool, NullIO(), locked=[foo_100])
    check_solver_result(
        root,
        provider,
        result={"foo": "1.0.0"},
    )