def METHOD_NAME(cls):
    super().METHOD_NAME()
    cls.shipping_product = cls.env["product.product"].create(
        {"type": "service", "name": "Test Shipping costs", "list_price": 10.0}
    )
    cls.carrier_cttexpress = cls.env["delivery.carrier"].create(
        {
            "name": "CTT Express",
            "delivery_type": "cttexpress",
            "product_id": cls.shipping_product.id,
            "debug_logging": True,
            "prod_environment": False,
            # CTT will maintain these credentials in order to allow OCA testing
            "cttexpress_user": "000002ODOO1",
            "cttexpress_password": "CAL%224271",
            "cttexpress_agency": "000002",
            "cttexpress_contract": "1",
            "cttexpress_customer": "ODOO1",
            "cttexpress_shipping_type": "19H",
        }
    )
    cls.product = cls.env["product.product"].create(
        {"type": "consu", "name": "Test product"}
    )
    cls.wh_partner = cls.env["res.partner"].create(
        {
            "name": "My Spanish WH",
            "city": "Zaragoza",
            "zip": "50001",
            "street": "C/ Mayor, 1",
            "country_id": cls.env.ref("base.es").id,
        }
    )
    cls.partner = cls.env["res.partner"].create(
        {
            "name": "Mr. Odoo & Co.",
            "city": "Madrid",
            "zip": "28001",
            "email": "odoo@test.com",
            "street": "Calle de La Rua, 3",
            "country_id": cls.env.ref("base.es").id,
        }
    )
    order_form = Form(cls.env["sale.order"].with_context(tracking_disable=True))
    order_form.partner_id = cls.partner
    with order_form.order_line.new() as line:
        line.product_id = cls.product
        line.product_uom_qty = 20.0
    cls.sale_order = order_form.save()
    cls.sale_order.carrier_id = cls.carrier_cttexpress
    cls.sale_order.action_confirm()
    # Ensure shipper address
    cls.sale_order.warehouse_id.partner_id = cls.wh_partner
    cls.picking = cls.sale_order.picking_ids
    cls.picking.move_lines.quantity_done = 20