[Erp5-report] r43340 jerome - /erp5/trunk/products/ERP5/tests/testBudget.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 15 10:40:42 CET 2011
Author: jerome
Date: Tue Feb 15 10:40:42 2011
New Revision: 43340
URL: http://svn.erp5.org?rev=43340&view=rev
Log:
fix test; when there's no consumption, the dict is empty
Modified:
erp5/trunk/products/ERP5/tests/testBudget.py
Modified: erp5/trunk/products/ERP5/tests/testBudget.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBudget.py?rev=43340&r1=43339&r2=43340&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBudget.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBudget.py [utf8] Tue Feb 15 10:40:42 2011
@@ -412,10 +412,7 @@ class TestBudget(ERP5TypeTestCase):
transaction.commit()
self.tic()
- self.assertEquals(
- {('source/account_module/fixed_assets', 'account_type/asset'): 0.0,
- ('source/account_module/goods_purchase', 'account_type/expense'): 0.0},
- budget_line.getConsumedBudgetDict())
+ self.assertEquals(dict(), budget_line.getConsumedBudgetDict())
self.assertEquals(
{('source/account_module/fixed_assets', 'account_type/asset'): -100.0,
More information about the Erp5-report
mailing list