[wf] need to clear cache here 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 25 Aug 2009 13:34:19 +0200
branch3.5
changeset 2982 1768dbe8e9b3
parent 2981 a7d9e7f7b41a
child 2983 b458631fe347
[wf] need to clear cache here
entities/test/unittest_wfobjs.py
--- a/entities/test/unittest_wfobjs.py	Tue Aug 25 13:33:32 2009 +0200
+++ b/entities/test/unittest_wfobjs.py	Tue Aug 25 13:34:19 2009 +0200
@@ -106,6 +106,7 @@
     def test_fire_transition(self):
         user = self.user()
         user.fire_transition('deactivate', comment=u'deactivate user')
+        user.clear_all_caches()
         self.assertEquals(user.state, 'deactivated')
         self._test_manager_deactivate(user)
         trinfo = self._test_manager_deactivate(user)