def METHOD_NAME(cls):
    super(TestL10nBrContract, cls).METHOD_NAME()
    # Create contract with 3 lines, two resale products and one service
    contract_form = Form(cls.env["contract.contract"])
    contract_form.name = "Test Contract"
    contract_form.partner_id = cls.env.ref("l10n_br_base.res_partner_kmee")
    cls.contract_id = contract_form.save()
    with Form(cls.contract_id) as contract:
        with contract.contract_line_ids.new() as line:
            line.product_id = cls.env.ref("product.product_delivery_01")
        with contract.contract_line_ids.new() as line:
            line.product_id = cls.env.ref("product.product_delivery_02")
        with contract.contract_line_ids.new() as line:
            line.product_id = cls.env.ref(
                "l10n_br_fiscal.customized_development_sale"
            )
            line.fiscal_operation_id = cls.env.ref("l10n_br_fiscal.fo_venda")
    # Create Invoice and Fiscal Documents related to the contract
    cls.contract_id.recurring_create_invoice()