def METHOD_NAME(
    premium_data_fixture, alternative_per_workspace_license_service
):
    user = premium_data_fixture.create_user(has_active_premium_license=True)
    grid_view = premium_data_fixture.create_grid_view(user=user)
    handler = ViewHandler()
    alternative_per_workspace_license_service.restrict_user_premium_to(
        user, [grid_view.table.database.workspace.id]
    )
    handler.create_decoration(
        view=grid_view,
        decorator_type_name="background_color",
        value_provider_type_name="",
        value_provider_conf={},
        user=user,
    )
    alternative_per_workspace_license_service.restrict_user_premium_to(user, [0])
    with pytest.raises(FeaturesNotAvailableError):
        handler.create_decoration(
            view=grid_view,
            decorator_type_name="background_color",
            value_provider_type_name="",
            value_provider_conf={},
            user=user,
        )