def METHOD_NAME(
    stocks_for_cc, checkout_with_items_for_cc, channel_USD
):
    expected_number_of_warehouses = 2
    lines = checkout_with_items_for_cc.lines.all()
    result = Warehouse.objects.applicable_for_click_and_collect(lines, channel_USD.id)
    result.get(click_and_collect_option=WarehouseClickAndCollectOption.ALL_WAREHOUSES)
    warehouse2 = result.get(
        click_and_collect_option=WarehouseClickAndCollectOption.LOCAL_STOCK
    )
    assert result.count() == expected_number_of_warehouses
    assert warehouse2.stock_set.count() == lines.count()