# HG changeset patch # User Sylvain Thénault # Date 1266409010 -3600 # Node ID 599189430c0eb863502ffafcdf9e9db9978d225e # Parent 7bf205b9a845f43249a20e0f5d2817dbad5552ce fix unittest_schema, remove deprecation warning diff -r 7bf205b9a845 -r 599189430c0e test/data/rrqlexpr_on_attr.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'),), } diff -r 7bf205b9a845 -r 599189430c0e test/unittest_schema.py --- 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")