def METHOD_NAME(
    update_products_discounted_prices_mock,
    new_sale,
    product_list,
    product,
    category,
    collection,
):
    # given
    new_sale.products.add(product)
    category.products.add(product_list[0])
    new_sale.categories.add(category)
    collection.products.add(product_list[1])
    new_sale.variants.add(product_list[2].variants.first())
    # when
    update_products_discounted_prices_of_sale_task(new_sale.id)
    # then
    update_products_discounted_prices_mock.assert_called_once()
    args, kwargs = update_products_discounted_prices_mock.call_args
    expected_products = [product] + product_list
    assert len(args[0]) == len(expected_products)
    assert {product.id for product in args[0]} == {
        instance.id for instance in expected_products
    }