[Erp5-report] r11879 - /erp5/trunk/products/ERP5/tests/testAccounting.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 3 17:37:06 CET 2007


Author: jerome
Date: Wed Jan  3 17:37:04 2007
New Revision: 11879

URL: http://svn.erp5.org?rev=11879&view=rev
Log:
calling edit with a storage_id as keyword argument is not supported. The only
guarantee is that it will internally get/store value on the storage_id
attribute, then account.edit(is_credit_account=) is not supposed to work.


Modified:
    erp5/trunk/products/ERP5/tests/testAccounting.py

Modified: erp5/trunk/products/ERP5/tests/testAccounting.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccounting.py?rev=11879&r1=11878&r2=11879&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccounting.py (original)
+++ erp5/trunk/products/ERP5/tests/testAccounting.py Wed Jan  3 17:37:04 2007
@@ -1378,17 +1378,11 @@
     account = self.getAccountModule().newContent(portal_type='Account')
     # simulate an old object
     account.is_credit_account = True
-
-    account.setCreditAccount(True)
     self.failUnless(account.isCreditAccount())
-    
-    # this is what Account_view would do when you update the code before
-    # without updating business template.
-    account.edit(is_credit_account=False)
+    self.failUnless(account.getProperty('credit_account'))
+    
+    account.setCreditAccount(False)
     self.failIf(account.isCreditAccount())
-    account.edit(is_credit_account=True)
-    self.failUnless(account.getProperty('is_credit_account'))
-
 
   # tests for Invoice_createRelatedPaymentTransaction
   def _checkRelatedSalePayment(self, invoice, payment, payment_node, quantity):




More information about the Erp5-report mailing list