From 697d895a818e81cbc6d3cbbc0c239d704f075c59 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 4 Feb 2008 10:12:26 +0000
Subject: [PATCH] call edit on the transaction, because
 createAccountingTransaction does not honor **kw

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19014 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testAccounting.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/product/ERP5/tests/testAccounting.py b/product/ERP5/tests/testAccounting.py
index 10ba2bae8a..aef9660a1b 100644
--- a/product/ERP5/tests/testAccounting.py
+++ b/product/ERP5/tests/testAccounting.py
@@ -2986,10 +2986,10 @@ class TestAccounting(ERP5TypeTestCase):
     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)
-- 
2.30.9