def METHOD_NAME(tmp_path):
    script_file = Path(__file__).parent / "slaves/pythonslave.py"
    def build():
        with tempfile.TemporaryDirectory() as documentation_dir:
            doc_dir = Path(documentation_dir)
            license_file = doc_dir / "licenses" / "license.txt"
            license_file.parent.mkdir()
            license_file.write_text("Dummy license")
            index_file = doc_dir / "index.html"
            index_file.write_text("dummy index")
            return FmuBuilder.build_FMU(script_file, dest=tmp_path, documentation_folder=doc_dir)
    fmu = build()
    with zipfile.ZipFile(fmu) as files:
        names = files.namelist()
        assert "documentation/index.html" in names
        assert "documentation/licenses/license.txt" in names