test/unittest_rset.py
changeset 8735 5567a5117aeb
parent 8595 01e1e44f1eb3
child 8900 010a59e12d89
--- a/test/unittest_rset.py	Tue Mar 19 15:17:34 2013 +0100
+++ b/test/unittest_rset.py	Tue Mar 19 15:18:22 2013 +0100
@@ -345,9 +345,9 @@
         e = rset.get_entity(0, 0)
         # if any of the assertion below fails with a KeyError, the relation is not cached
         # related entities should be an empty list
-        self.assertEqual(e._cw_relation_cache('primary_email', 'subject', True), ())
+        self.assertEqual(e._cw_related_cache['primary_email_subject'][True], ())
         # related rset should be an empty rset
-        cached = e._cw_relation_cache('primary_email', 'subject', False)
+        cached = e._cw_related_cache['primary_email_subject'][False]
         self.assertIsInstance(cached, ResultSet)
         self.assertEqual(cached.rowcount, 0)