[entities] fix test failures introduced by fixes in workflow related message strings (completes 9bb93efa1952) stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 18 Jan 2013 18:31:25 +0100
branchstable
changeset 8659 cd9fddc21361
parent 8657 5ab6ec83d5ba
child 8660 aa865f3be80d
child 8678 1771d4b0fa0d
[entities] fix test failures introduced by fixes in workflow related message strings (completes 9bb93efa1952)
entities/test/unittest_wfobjs.py
--- a/entities/test/unittest_wfobjs.py	Fri Jan 18 17:37:35 2013 +0100
+++ b/entities/test/unittest_wfobjs.py	Fri Jan 18 18:31:25 2013 +0100
@@ -55,7 +55,8 @@
         wf.add_state(u'foo')
         with self.assertRaises(ValidationError) as cm:
             self.commit()
-        self.assertEqual(cm.exception.errors, {'name-subject': 'workflow already have a state of that name'})
+        self.assertEqual({'name-subject': 'workflow already has a state of that name'},
+                         cm.exception.errors)
         # no pb if not in the same workflow
         wf2 = add_wf(self, 'Company')
         foo = wf2.add_state(u'foo', initial=True)
@@ -66,7 +67,8 @@
         bar.set_attributes(name=u'foo')
         with self.assertRaises(ValidationError) as cm:
             self.commit()
-        self.assertEqual(cm.exception.errors, {'name-subject': 'workflow already have a state of that name'})
+        self.assertEqual({'name-subject': 'workflow already has a state of that name'},
+                         cm.exception.errors)
 
     def test_duplicated_transition(self):
         wf = add_wf(self, 'Company')