entities/test/unittest_wfobjs.py
changeset 3024 bfaf056f1029
parent 3023 7864fee8b4ec
child 3230 1d25e928c299
--- a/entities/test/unittest_wfobjs.py	Wed Aug 26 14:45:56 2009 +0200
+++ b/entities/test/unittest_wfobjs.py	Wed Aug 26 15:00:46 2009 +0200
@@ -110,7 +110,7 @@
         wf = add_wf(self, 'CWUser')
         s = wf.add_state(u'foo', initial=True)
         self.commit()
-        ex = self.assertRaises(ValidationError, self.session().unsafe_execute,
+        ex = self.assertRaises(ValidationError, self.session.unsafe_execute,
                                'SET X in_state S WHERE X eid %(x)s, S eid %(s)s',
                                {'x': self.user().eid, 's': s.eid}, 'x')
         self.assertEquals(ex.errors, {'in_state': "state doesn't belong to entity's workflow. "