[Erp5-report] r33784 yo - /erp5/trunk/products/ERP5/tests/testBusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 17 09:08:17 CET 2010


Author: yo
Date: Wed Mar 17 09:08:16 2010
New Revision: 33784

URL: http://svn.erp5.org?rev=33784&view=rev
Log:
Use failIfDifferentSet instead of assertEquals when comparing the keys of an original one and a copied one, as the orders of keys do not matter for this test.

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

Modified: erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBusinessTemplate.py?rev=33784&r1=33783&r2=33784&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] Wed Mar 17 09:08:16 2010
@@ -234,7 +234,7 @@
       copy_obj = getattr(copy_bt, item_name)
       self.failIf(original_obj is None)
       self.failIf(copy_obj is None)
-      self.assertEquals(original_obj.getKeys(), copy_obj.getKeys())
+      self.failIfDifferentSet(original_obj.getKeys(), copy_obj.getKeys())
 
   def stepUseExportBusinessTemplate(self, sequence=None,
                                   sequence_list=None, **kw):




More information about the Erp5-report mailing list