server/test/unittest_repository.py
changeset 7539 7cd9fc2adcac
parent 7514 32081892850e
child 7543 570522300e22
--- a/server/test/unittest_repository.py	Fri Jun 17 18:53:33 2011 +0200
+++ b/server/test/unittest_repository.py	Mon Jun 20 19:13:38 2011 +0200
@@ -853,7 +853,7 @@
         p2 = req.create_entity('Personne', nom=u'Florent')
         w = req.create_entity('Affaire', ref=u'wc')
         w.set_relations(todo_by=[p1,p2])
-        w.clear_all_caches()
+        w.cw_clear_all_caches()
         self.commit()
         self.assertEqual(len(w.todo_by), 1)
         self.assertEqual(w.todo_by[0].eid, p2.eid)
@@ -866,7 +866,7 @@
         w.set_relations(todo_by=p1)
         self.commit()
         w.set_relations(todo_by=p2)
-        w.clear_all_caches()
+        w.cw_clear_all_caches()
         self.commit()
         self.assertEqual(len(w.todo_by), 1)
         self.assertEqual(w.todo_by[0].eid, p2.eid)