# HG changeset patch # User Alexandre Fayolle # Date 1272976867 -7200 # Node ID ab35bcdcb7c144cf7cf330ae5367dc7eacc1da88 # Parent d040889fac4ec7669594c82932589343b5502444 fixed unittest_wfobjs diff -r d040889fac4e -r ab35bcdcb7c1 entities/test/unittest_wfobjs.py --- a/entities/test/unittest_wfobjs.py Tue May 04 14:16:04 2010 +0200 +++ b/entities/test/unittest_wfobjs.py Tue May 04 14:41:07 2010 +0200 @@ -56,7 +56,7 @@ self.commit() wf.add_state(u'foo') ex = self.assertRaises(ValidationError, self.commit) - self.assertEquals(ex.errors, {'name-subject': 'workflow already have a state of that name'}) + self.assertEquals(ex.errors, {'state_of-subject': 'workflow already have a state of that name'}) # no pb if not in the same workflow wf2 = add_wf(self, 'Company') foo = wf2.add_state(u'foo', initial=True) @@ -432,7 +432,7 @@ self.execute('SET X custom_workflow WF WHERE X eid %(x)s, WF eid %(wf)s', {'wf': wf.eid, 'x': self.member.eid}) ex = self.assertRaises(ValidationError, self.commit) - self.assertEquals(ex.errors, {'in_state-subject': u"state doesn't apply to this entity's type"}) + self.assertEquals(ex.errors, {'custom_workflow-subject': u"workflow isn't a workflow for this type"}) def test_del_custom_wf(self): """member in some state shared by the new workflow, nothing has to be