fix unittest_schema, remove deprecation warning stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 17 Feb 2010 13:16:50 +0100
branchstable
changeset 4611 599189430c0e
parent 4610 7bf205b9a845
child 4612 d6ae30c5d055
fix unittest_schema, remove deprecation warning
test/data/rrqlexpr_on_attr.py
test/unittest_schema.py
--- a/test/data/rrqlexpr_on_attr.py	Wed Feb 17 13:12:35 2010 +0100
+++ b/test/data/rrqlexpr_on_attr.py	Wed Feb 17 13:16:50 2010 +0100
@@ -20,6 +20,5 @@
 class attr(RelationType):
     __permissions__ = {
         'read': ('managers', ),
-        'add': ('managers', RRQLExpression('S bla Y'),),
-        'delete': ('managers',),
+        'update': ('managers', RRQLExpression('S bla Y'),),
         }
--- a/test/unittest_schema.py	Wed Feb 17 13:12:35 2010 +0100
+++ b/test/unittest_schema.py	Wed Feb 17 13:16:50 2010 +0100
@@ -257,7 +257,7 @@
         self.assertEquals(str(ex), msg)
 
     def test_rrqlexpr_on_etype(self):
-        self._test('rrqlexpr_on_eetype.py', "can't use RRQLExpression on an entity type, use an ERQLExpression (ToTo)")
+        self._test('rrqlexpr_on_eetype.py', "can't use RRQLExpression on ToTo, use an ERQLExpression")
 
     def test_erqlexpr_on_rtype(self):
         self._test('erqlexpr_on_ertype.py', "can't use ERQLExpression on relation ToTo toto TuTu, use a RRQLExpression")