[test] update to 3.13 api
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 20 Jun 2011 19:13:38 +0200
changeset 7539 7cd9fc2adcac
parent 7536 29961a416faa
child 7541 55b1378e9357
[test] update to 3.13 api
server/test/unittest_repository.py
--- 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)