def METHOD_NAME(self):
    (self.pusedir / "a").write_text(
        """
        */* x_y1
        # unrelated is there to verify that it's unaffected by the USE_EXPAND
        */* unrelated X: -y1 y2
        # multiple USE_EXPANDs
        */* unrelated X: -y1 y2 Z: -z3 z4
        # cleanup previous
        */* x y -* z
        # cleanup previous USE_EXPAND
        */* unrelated Y: y1 -* y2 Z: z1 -* -z2
        """
    )
    assert (
        (packages.AlwaysTrue, ((), ("x_y1",))),
        (
            packages.AlwaysTrue,
            (
                ("x_y1",),
                (
                    "unrelated",
                    "x_y2",
                ),
            ),
        ),
        (
            packages.AlwaysTrue,
            (
                ("x_y1", "z_z3"),
                (
                    "unrelated",
                    "x_y2",
                    "z_z4",
                ),
            ),
        ),
        (
            packages.AlwaysTrue,
            (
                ("*",),
                ("z",),
            ),
        ),
        (
            packages.AlwaysTrue,
            (
                (
                    "y_*",
                    "z_*",
                    "z_z2",
                ),
                (
                    "unrelated",
                    "y_y2",
                ),
            ),
        ),
    ) == self.mk_domain().pkg_use