def METHOD_NAME(self):
    with TempSubvolumes(Path(sys.argv[0])) as temp_subvolumes:
        parent = layer_resource_subvol(__package__, "test-build-appliance")
        item = ParentLayerItem(from_target="t", subvol=parent)
        child = temp_subvolumes.caller_will_create("child")
        with self.assertRaisesRegex(
            AssertionError, "does not match provided flavor"
        ):
            item.get_phase_builder(
                [item],
                DUMMY_LAYER_OPTS_BA._replace(flavor="different flavor"),
            )(child)