devtools/testlib.py
changeset 4053 7cc66b1d9183
parent 4036 137be4878127
child 4083 3b285889b8e9
--- a/devtools/testlib.py	Tue Dec 08 18:05:10 2009 +0100
+++ b/devtools/testlib.py	Tue Dec 08 07:54:51 2009 -0800
@@ -693,8 +693,8 @@
     for rschema in schema.relations():
         if rschema.final:
             continue
-        for subj, obj in rschema.iter_rdefs():
-            card = rschema.rproperty(subj, obj, 'cardinality')
+        for subj, obj in rschema.rdefs:
+            card = rschema.rdef(subj, obj).cardinality
             if card[0] in '1?' and len(rschema.subjects(obj)) == 1:
                 relmap.setdefault((rschema, subj), []).append(str(obj))
             if card[1] in '1?' and len(rschema.objects(subj)) == 1: