def METHOD_NAME(self):
    productattributeline = self.env["product.template.attribute.line"]
    productattributeline.onchange_values()
    self.assertEqual(
        productattributeline.default_val,
        productattributeline.value_ids,
        "Error: If default_val not exists\
        Method: onchange_values()",
    )