server/test/unittest_msplanner.py
changeset 5556 9ab2b4c74baf
parent 5424 8ecbcbff9777
child 5575 8a531340c3ef
--- a/server/test/unittest_msplanner.py	Thu May 20 20:47:13 2010 +0200
+++ b/server/test/unittest_msplanner.py	Thu May 20 20:47:55 2010 +0200
@@ -1722,8 +1722,9 @@
                     ])
 
     def test_nonregr2(self):
-        self.session.user.fire_transition('deactivate')
-        treid = self.session.user.latest_trinfo().eid
+        iworkflowable = self.session.user.cw_adapt_to('IWorkflowable')
+        iworkflowable.fire_transition('deactivate')
+        treid = iworkflowable.latest_trinfo().eid
         self._test('Any X ORDERBY D DESC WHERE E eid %(x)s, E wf_info_for X, X modification_date D',
                    [('FetchStep', [('Any X,D WHERE X modification_date D, X is Note',
                                     [{'X': 'Note', 'D': 'Datetime'}])],