def METHOD_NAME(
    self,
    caplog: LogCaptureFixture,
    lock_exists: bool,
    pipfile_exists: bool,
    tmp_path: Path,
) -> None:
    """Test dir_is_project."""
    caplog.set_level(logging.WARNING)
    if lock_exists:
        (tmp_path / "Pipfile.lock").touch()
    if pipfile_exists:
        (tmp_path / "Pipfile").touch()
        assert Pipenv.dir_is_project(tmp_path)
        if not lock_exists:
            assert "Pipfile.lock not found" in caplog.messages
    else:
        assert not Pipenv.dir_is_project(tmp_path)