--- a/test/unittest_rset.py Wed Aug 26 13:09:19 2009 +0200
+++ b/test/unittest_rset.py Wed Aug 26 14:36:00 2009 +0200
@@ -328,6 +328,7 @@
entity, rtype = rset.related_entity(1, 1)
self.assertEquals(entity.id, 'CWGroup')
self.assertEquals(rtype, 'name')
+ #
rset = self.execute('Any X,N ORDERBY N WHERE X is Bookmark WITH X,N BEING '
'((Any X,N WHERE X is CWGroup, X name N)'
' UNION '
@@ -335,6 +336,14 @@
entity, rtype = rset.related_entity(0, 1)
self.assertEquals(entity.eid, e.eid)
self.assertEquals(rtype, 'title')
+ #
+ rset = self.execute('Any X,N ORDERBY N WITH N,X BEING '
+ '((Any N,X WHERE X is CWGroup, X name N)'
+ ' UNION '
+ ' (Any N,X WHERE X is Bookmark, X title N))')
+ entity, rtype = rset.related_entity(0, 1)
+ self.assertEquals(entity.eid, e.eid)
+ self.assertEquals(rtype, 'title')
def test_entities(self):
rset = self.execute('Any U,G WHERE U in_group G')