def METHOD_NAME(self, tmp_path):
    self.mk_glsa(tmp_path, pkgs_set + (("dev-util/bsdiff", ([], ["~>=2-r1"])),))
    g = glsa.GlsaDirSet(str(tmp_path))
    l = list(g.pkg_grouped_iter(sorter=sorted))
    assert {x.key for x in l} == {"dev-util/diffball", "dev-util/bsdiff"}
    # main interest is dev-util/bsdiff
    r = l[0]
    pkgs = [
        cpv.VersionedCPV(f"dev-util/bsdiff-{ver}")
        for ver in ("0", "1", "1.1", "2", "2-r1")
    ]
    assert [x.fullver for x in pkgs if r.match(x)] == ["1.1", "2-r1"]