[IMP] account: minor improvement in yaml test messages
authorOlivier Dony <odo@openerp.com>
Thu, 24 Nov 2011 17:40:17 +0000 (18:40 +0100)
committerOlivier Dony <odo@openerp.com>
Thu, 24 Nov 2011 17:40:17 +0000 (18:40 +0100)
bzr revid: odo@openerp.com-20111124174017-p0v9fqcp3l3snsvk

addons/account/test/account_supplier_invoice.yml

index 8dcf77f..3683a3e 100644 (file)
@@ -84,8 +84,8 @@
     except Exception, e:
       assert e, 'Warning message has not been raised'
 -
-  I verify that 'Period Sum' and 'Year sum' of account tax codes gets bind with the values
+  I verify that 'Period Sum' and 'Year sum' of the tax code are the expected values 
 -
   !python {model: account.tax.code}: |
     tax_code = self.browse(cr, uid, ref('tax_case'))
-    assert(tax_code.sum_period == 100.0 and tax_code.sum == 100.0), "'Period Sum' and 'Year sum' has not been binded with the correct values"
+    assert(tax_code.sum_period == 100.0 and tax_code.sum == 100.0), "Incorrect 'Period Sum' / 'Year sum' expected twice 100.0, got period=%r and year=%r)" % (tax_code.sum_period,tax_code.sum)