def METHOD_NAME(self, mocker: MockerFixture, tmp_path: Path) -> None:
    """Test __init__ root_directory provided as str."""
    gitignore_filter = mocker.patch("igittigitt.IgnoreParser", Mock())
    gitignore_filter.return_value = gitignore_filter
    src_path = tmp_path / "src"
    obj = SourceCode(str(src_path), project_root=str(tmp_path))
    assert obj.project_root == tmp_path
    assert obj.root_directory == src_path
    assert isinstance(obj.root_directory, Path)