test/unittest_entity.py
branchstable
changeset 9160 7db0c75acf1c
parent 8735 5567a5117aeb
child 9214 be05b42b4825
--- a/test/unittest_entity.py	Thu Jul 11 17:16:49 2013 +0200
+++ b/test/unittest_entity.py	Thu Jul 11 18:43:29 2013 +0200
@@ -643,8 +643,10 @@
         e.cw_attr_cache['data_format'] = 'text/html'
         e.cw_attr_cache['data_encoding'] = 'ascii'
         e._cw.transaction_data = {} # XXX req should be a session
-        self.assertEqual(e.cw_adapt_to('IFTIndexable').get_words(),
-                          {'C': ['an', 'html', 'file', 'du', 'html', 'some', 'data']})
+        words = e.cw_adapt_to('IFTIndexable').get_words()
+        words['C'].sort()
+        self.assertEqual({'C': sorted(['an', 'html', 'file', 'du', 'html', 'some', 'data'])},
+                         words)
 
 
     def test_nonregr_relation_cache(self):