--- a/test/unittest_rqlrewrite.py Wed Nov 18 09:16:38 2009 +0100
+++ b/test/unittest_rqlrewrite.py Thu Nov 19 12:55:47 2009 +0100
@@ -18,7 +18,8 @@
config = TestServerConfiguration('data/rewrite')
config.bootstrap_cubes()
schema = config.load_schema()
-schema.add_relation_def(mock_object(subject='Card', name='in_state', object='State', cardinality='1*'))
+from yams.buildobjs import RelationDefinition
+schema.add_relation_def(RelationDefinition(subject='Card', name='in_state', object='State', cardinality='1*'))
rqlhelper = RQLHelper(schema, special_relations={'eid': 'uid',
'has_text': 'fti'})