use an actual state name, not a transition name
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 24 Jul 2009 19:39:53 +0200
changeset 2500 e342a8662c8d
parent 2499 26fb72e0af23
child 2501 fa86d99c2c3a
use an actual state name, not a transition name
server/test/unittest_security.py
--- a/server/test/unittest_security.py	Fri Jul 24 18:45:16 2009 +0200
+++ b/server/test/unittest_security.py	Fri Jul 24 19:39:53 2009 +0200
@@ -499,7 +499,7 @@
         self.assertRaises(Unauthorized,
                           self.schema['Affaire'].check_perm, session, 'update', eid)
         cu = cnx.cursor()
-        cu.execute('SET X in_state S WHERE X ref "ARCT01", S name "abort"')
+        cu.execute('SET X in_state S WHERE X ref "ARCT01", S name "ben non"')
         cnx.commit()
         # though changing a user state (even logged user) is reserved to managers
         rql = u"SET X in_state S WHERE X eid %(x)s, S name 'deactivated'"