def METHOD_NAME(self):
    unseen_steps = [
        {
            repo_name: True
            for repo_name, content in step.items()
            if content is not None  # Means "delete repo"
        }
        for step in SAMPLE_STEPS
    ]
    for repo_path, repomd in find_test_repos(self.repos_root):
        xml_rd, sql_rd = self._xml_and_sqlite_primaries(repomd)
        with open(repo_path / xml_rd.location, "rb") as xf, open(
            repo_path / sql_rd.location, "rb"
        ) as sf:
            sql_rpms = _rpm_set(sf, sql_rd)
            self.assertEqual(_rpm_set(xf, xml_rd), sql_rpms)
            # A joint test of repo parsing and `temp_repos`: check that
            # we had exactly the RPMs that were specified.
            step = int(repo_path.dirname().basename())
            repo = repo_path.basename().decode()  # `Repo` or `str` (name)
            # Resolve a string alias to the `Repo` object corresponding
            # to it.  At present, an alias refers to the repo as it
            # existed at the step that introduced the alias.  NB: These
            # semantics aren't in any way "uniquely right", it is just
            # what `temp_repos.py` does.
            search_step = step
            while isinstance(repo, str):
                repo_name = repo
                # Find the most recent step that defined this repo name
                while True:
                    repo = SAMPLE_STEPS[search_step].get(repo_name)
                    if repo is not None:
                        break
                    search_step -= 1
                    assert search_step >= 0
            self.assertEqual(
                {
                    f"rpm-test-{r.name}-{r.version}-{r.release}.x86_64.rpm"
                    for r in repo.rpms
                },
                {os.path.basename(r.location) for r in sql_rpms},
                (repo, repo_name, repo_path),
            )
            unseen_steps[step].pop(repo_path.basename().decode(), None)
    self.assertEqual([], [s for s in unseen_steps if s])