[Erp5-report] r33847 nicolas.dumazet - /erp5/trunk/products/ERP5/tests/testTransformation.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 18 10:43:29 CET 2010


Author: nicolas.dumazet
Date: Thu Mar 18 10:43:29 2010
New Revision: 33847

URL: http://svn.erp5.org?rev=33847&view=rev
Log:
use assertSameSet to prevent ordering issues

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

Modified: erp5/trunk/products/ERP5/tests/testTransformation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testTransformation.py?rev=33847&r1=33846&r2=33847&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testTransformation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testTransformation.py [utf8] Thu Mar 18 10:43:29 2010
@@ -162,9 +162,9 @@
 
     transaction.commit()
     self.tic()
-    self.assertEquals(
-        swimcap.getVariationCategoryList(),
-        transformation.getVariationCategoryList()
+    self.assertSameSet(
+        set(swimcap.getVariationCategoryList()),
+        set(transformation.getVariationCategoryList()),
     )
 
   def test_variationCategoryWithIndividualVariation(self):




More information about the Erp5-report mailing list