def METHOD_NAME(
    self, build_system: Dict[str, Any], expected: bool, tmp_path: Path
) -> None:
    """Test dir_is_project."""
    pyproject_contents = {"build-system": build_system}
    pyproject_path = tmp_path / "pyproject.toml"
    pyproject_path.write_text(tomli_w.dumps(pyproject_contents))
    assert Poetry.dir_is_project(tmp_path) is expected