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

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Feb 4 11:12:27 CET 2008


Author: jerome
Date: Mon Feb  4 11:12:26 2008
New Revision: 19014

URL: http://svn.erp5.org?rev=19014&view=rev
Log:
call edit on the transaction, because createAccountingTransaction does not
honor **kw

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=19014&r1=19013&r2=19014&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccounting.py (original)
+++ erp5/trunk/products/ERP5/tests/testAccounting.py Mon Feb  4 11:12:26 2008
@@ -2986,10 +2986,10 @@
     self.assertEquals('2002-1', next_year_transaction.getDestinationReference())
 
   def test_SearchableText(self):
-    transaction = self.createAccountingTransaction(
-                          title='A new Transaction',
-                          description="A description",
-                          comment="Some comments")
+    transaction = self.createAccountingTransaction()
+    transaction.edit(title='A new Transaction',
+                     description="A description",
+                     comment="Some comments")
     searchable_text = transaction.SearchableText()
     self.assertTrue('A new Transaction' in searchable_text)
     self.assertTrue('A description' in searchable_text)




More information about the Erp5-report mailing list