def assert_expected_files(expected: list[str], store: str) -> None:
            """Convenience for comparing with actual files written"""
            ls = []
            test_root = os.path.join(store, "test")
            for root, _, files in os.walk(test_root):
                ls.extend(
                    [
                        os.path.join(root, f).removeprefix(test_root).lstrip("/")
                        for f in files
                    ]
                )

            assert set(expected) == set(
                [
                    file.lstrip("c/")
                    for file in ls
                    if (file not in (".zattrs", ".zarray", "zarr.json"))
                ]
            )
Convenience for comparing with actual files written
xarray/tests/test_backends.py