entities/test/unittest_wfobjs.py
changeset 10353 d9a1e7939ee6
parent 10280 2cdab5e33542
child 10354 635cfac73d28
--- a/entities/test/unittest_wfobjs.py	Fri Jun 13 12:07:51 2014 +0200
+++ b/entities/test/unittest_wfobjs.py	Fri Jun 13 13:54:28 2014 +0200
@@ -87,12 +87,12 @@
             shell.rollback()
             # no pb if not in the same workflow
             wf2 = add_wf(shell, 'Company')
-            foo = wf.add_state(u'foo', initial=True)
-            bar = wf.add_state(u'bar')
-            wf.add_transition(u'baz', (foo,), bar, ('managers',))
+            foo = wf2.add_state(u'foo', initial=True)
+            bar = wf2.add_state(u'bar')
+            wf2.add_transition(u'baz', (foo,), bar, ('managers',))
             shell.commit()
             # gnark gnark
-            biz = wf.add_transition(u'biz', (bar,), foo)
+            biz = wf2.add_transition(u'biz', (bar,), foo)
             shell.commit()
             with self.assertRaises(ValidationError) as cm:
                 biz.cw_set(name=u'baz')