def METHOD_NAME(self, mocker):
    mocker.patch("platform.machine", return_value="x86_64")
    with pytest.raises(SnapcraftError) as err:
        elf_utils.get_dynamic_linker(
            root_path=Path("prime"), snap_path=Path("/snap/foo/current")
        )
    assert str(err.value) == (
        "Dynamic linker 'prime/lib64/ld-linux-x86-64.so.2' not found."
    )