test update stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 23 Nov 2009 14:56:44 +0100
branchstable
changeset 3899 78a2c8e7eef5
parent 3898 90926f3a8ada
child 3900 a26f50cb7e70
test update
test/unittest_schema.py
--- a/test/unittest_schema.py	Mon Nov 23 14:56:40 2009 +0100
+++ b/test/unittest_schema.py	Mon Nov 23 14:56:44 2009 +0100
@@ -113,7 +113,7 @@
         rconcerne.set_groups('read', ('managers',))
         self.assertEqual(rconcerne.get_groups('read'), set(('managers',)))
         self.assertEqual([str(e) for e in rconcerne.get_rqlexprs('add')],
-                         ['Any S WHERE U has_update_permission S, S eid %(s)s, U eid %(u)s'])
+                         ['Any S,U WHERE U has_update_permission S, S eid %(s)s, U eid %(u)s'])
 
     def test_erqlexpression(self):
         self.assertRaises(RQLSyntaxError, ERQLExpression, '1')
@@ -124,7 +124,7 @@
         self.assertRaises(Exception, RRQLExpression, '1')
         self.assertRaises(RQLSyntaxError, RRQLExpression, 'O X Y')
         expr = RRQLExpression('U has_update_permission O')
-        self.assertEquals(str(expr), 'Any O WHERE U has_update_permission O, O eid %(o)s, U eid %(u)s')
+        self.assertEquals(str(expr), 'Any O,U WHERE U has_update_permission O, O eid %(o)s, U eid %(u)s')
 
 loader = CubicWebSchemaLoader()
 config = TestConfiguration('data')