test/unittest_entity.py
changeset 9205 ea32e964fbf8
parent 9160 7db0c75acf1c
child 9214 be05b42b4825
--- a/test/unittest_entity.py	Thu Jul 04 09:26:59 2013 +0200
+++ b/test/unittest_entity.py	Tue Jul 30 20:31:57 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):