def METHOD_NAME(self, tmp_path, html_path):
    if not hasattr(zipfile, 'Path'):
        pytest.skip("Needs zipfile.Path")
    zip_path = tmp_path / 'qutebrowser.zip'
    with zipfile.ZipFile(zip_path, 'w') as zf:
        for path in html_path.rglob('*'):
            zf.write(path, path.relative_to(tmp_path))
        assert sorted(zf.namelist()) == [
            'qutebrowser/html/README',
            'qutebrowser/html/subdir/',
            'qutebrowser/html/subdir/subdir-file.html',
            'qutebrowser/html/test1.html',
            'qutebrowser/html/test2.html',
            'qutebrowser/html/unrelatedhtml',
        ]
    return zipfile.Path(zip_path) / 'qutebrowser'