[Erp5-report] r35584 kazuhiko - /erp5/trunk/products/ERP5Legacy/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon May 24 21:30:41 CEST 2010
Author: kazuhiko
Date: Mon May 24 21:30:40 2010
New Revision: 35584
URL: http://svn.erp5.org?rev=35584&view=rev
Log:
these assertions were written according to the wrong implementation, that was fixed in r35561 and r35573.
Modified:
erp5/trunk/products/ERP5Legacy/tests/testLegacyTaxLineTradeCondition.py
Modified: erp5/trunk/products/ERP5Legacy/tests/testLegacyTaxLineTradeCondition.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Legacy/tests/testLegacyTaxLineTradeCondition.py?rev=35584&r1=35583&r2=35584&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Legacy/tests/testLegacyTaxLineTradeCondition.py [utf8] (original)
+++ erp5/trunk/products/ERP5Legacy/tests/testLegacyTaxLineTradeCondition.py [utf8] Mon May 24 21:30:40 2010
@@ -874,11 +874,11 @@
self.assertEquals('solved', related_invoice.getCausalityState())
- # Of course, this invoice does not generate simulation again. An applied
- # rule is created, but it is empty.
+ # Of course, this invoice does not generate simulation again. New
+ # applied rule is not created.
related_applied_rule = related_invoice.getCausalityRelatedValue(
portal_type='Applied Rule')
- self.assertEquals(0, len(related_applied_rule.objectValues()))
+ self.assertEquals(None, related_applied_rule)
def test_tax_line_build_accounting(self):
base_1 = self.base_amount.newContent(
@@ -958,11 +958,11 @@
income_line.getDestinationValue())
self.assertEquals(30, income_line.getSourceCredit())
- # Of course, this invoice does not generate simulation again. An applied
- # rule is created, but it is empty.
+ # Of course, this invoice does not generate simulation again. New
+ # applied rule is not created.
related_applied_rule = related_invoice.getCausalityRelatedValue(
portal_type='Applied Rule')
- self.assertEquals(0, len(related_applied_rule.objectValues()))
+ self.assertEquals(None, related_applied_rule)
# and there's no other invoices
self.assertEquals(1, len(self.portal.accounting_module.contentValues()))
More information about the Erp5-report
mailing list