sobjects/test/unittest_supervising.py
changeset 5556 9ab2b4c74baf
parent 5426 0d4853a6e5ee
child 6340 470d8e828fda
--- a/sobjects/test/unittest_supervising.py	Thu May 20 20:47:13 2010 +0200
+++ b/sobjects/test/unittest_supervising.py	Thu May 20 20:47:55 2010 +0200
@@ -84,7 +84,7 @@
         self.assertEquals(op.to_send[0][1], ['test@logilab.fr'])
         self.commit()
         # some other changes #######
-        user.fire_transition('deactivate')
+        user.cw_adapt_to('IWorkflowable').fire_transition('deactivate')
         sentops = [op for op in session.pending_operations
                    if isinstance(op, SupervisionMailOp)]
         self.assertEquals(len(sentops), 1)