entities/test/unittest_wfobjs.py
changeset 8660 aa865f3be80d
parent 8646 82c7c2e0f69f
parent 8659 cd9fddc21361
child 8694 d901c36bcfce
--- a/entities/test/unittest_wfobjs.py	Fri Jan 18 16:40:11 2013 +0100
+++ b/entities/test/unittest_wfobjs.py	Fri Jan 18 18:31:51 2013 +0100
@@ -54,7 +54,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)
@@ -65,7 +66,8 @@
         bar.cw_set(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')