remove debug print, fix error message
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 08 Dec 2009 12:04:49 +0100
changeset 4030 6cfe4faddf8c
parent 4029 e50a6b70c8e4
child 4031 56f4d4f7f86f
remove debug print, fix error message
entities/test/unittest_wfobjs.py
--- a/entities/test/unittest_wfobjs.py	Tue Dec 08 12:03:15 2009 +0100
+++ b/entities/test/unittest_wfobjs.py	Tue Dec 08 12:04:49 2009 +0100
@@ -45,7 +45,6 @@
         # gnark gnark
         bar = wf.add_state(u'bar')
         self.commit()
-        print '*'*80
         bar.set_attributes(name=u'foo')
         ex = self.assertRaises(ValidationError, self.commit)
         self.assertEquals(ex.errors, {'name': 'workflow already have a state of that name'})
@@ -234,7 +233,7 @@
         # subworkflow input transition
         ex = self.assertRaises(ValidationError,
                                self.group.change_state, swfstate1, u'gadget')
-        self.assertEquals(ex.errors, {'to_state': "state doesn't belong to entity's current workflow"})
+        self.assertEquals(ex.errors, {'to_state': "state doesn't belong to entity's workflow"})
         self.rollback()
         # force back to state1
         self.group.change_state('state1', u'gadget')