[tests] use maxsize instead of SizeConstraint
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 23 Sep 2009 12:29:53 +0200
changeset 3420 15f17399bda2
parent 3419 32cfd0844243
child 3421 7fec79c1c11f
[tests] use maxsize instead of SizeConstraint
test/data/rewrite/schema.py
--- a/test/data/rewrite/schema.py	Wed Sep 23 12:29:31 2009 +0200
+++ b/test/data/rewrite/schema.py	Wed Sep 23 12:29:53 2009 +0200
@@ -9,8 +9,7 @@
         'update': ('managers', 'owners', ERQLExpression('X in_state S, S name in ("pitetre", "en cours")')),
         'delete': ('managers', 'owners', ERQLExpression('X concerne S, S owned_by U')),
         }
-    ref = String(fulltextindexed=True, indexed=True,
-                 constraints=[SizeConstraint(16)])
+    ref = String(fulltextindexed=True, indexed=True, maxsize=16)
     documented_by = SubjectRelation('Card')
     concerne = SubjectRelation(('Societe', 'Note'))