test/unittest_entity.py
changeset 8735 5567a5117aeb
parent 8696 0bb18407c053
child 9160 7db0c75acf1c
--- a/test/unittest_entity.py	Tue Mar 19 15:17:34 2013 +0100
+++ b/test/unittest_entity.py	Tue Mar 19 15:18:22 2013 +0100
@@ -141,6 +141,9 @@
         self.execute('SET X tags Y WHERE X is Tag, Y is Personne')
         self.assertEqual(len(p.related('tags', 'object', limit=2)), 2)
         self.assertEqual(len(p.related('tags', 'object')), 4)
+        p.cw_clear_all_caches()
+        self.assertEqual(len(p.related('tags', 'object', entities=True, limit=2)), 2)
+        self.assertEqual(len(p.related('tags', 'object', entities=True)), 4)
 
     def test_cw_instantiate_relation(self):
         req = self.request()