def METHOD_NAME(self):
    """It should change the contract values to match the template."""
    self.contract.contract_template_id = False
    self.contract._onchange_contract_template_id()
    self.contract.contract_template_id = self.template
    self.contract._onchange_contract_template_id()
    res = {
        "contract_type": "sale",
        "contract_line_ids": [
            (
                0,
                0,
                {
                    "product_id": self.product_1.id,
                    "name": "Test Contract Template",
                    "quantity": 1,
                    "uom_id": self.product_1.uom_id.id,
                    "price_unit": 100,
                    "discount": 50,
                    "recurring_rule_type": "yearly",
                    "recurring_interval": 1,
                },
            )
        ],
    }
    del self.template_vals["name"]
    self.assertDictEqual(res, self.template_vals)