45 self.assertEquals(vid_from_rset(req, rset, self.schema), 'primary') |
45 self.assertEquals(vid_from_rset(req, rset, self.schema), 'primary') |
46 |
46 |
47 def test_more_than_one_entity_same_type(self): |
47 def test_more_than_one_entity_same_type(self): |
48 req = self.request() |
48 req = self.request() |
49 rset = self.execute('Any X WHERE X is CWUser') |
49 rset = self.execute('Any X WHERE X is CWUser') |
50 self.assertEquals(vid_from_rset(req, rset, self.schema), 'adaptedlist') |
50 self.assertEquals(vid_from_rset(req, rset, self.schema), 'sameetypelist') |
51 rset = self.execute('Any X, L WHERE X login L') |
51 rset = self.execute('Any X, L WHERE X login L') |
52 self.assertEquals(vid_from_rset(req, rset, self.schema), 'adaptedlist') |
52 self.assertEquals(vid_from_rset(req, rset, self.schema), 'sameetypelist') |
53 |
53 |
54 def test_more_than_one_entity_diff_type(self): |
54 def test_more_than_one_entity_diff_type(self): |
55 req = self.request() |
55 req = self.request() |
56 rset = self.execute('Any X WHERE X is IN (CWUser, CWGroup)') |
56 rset = self.execute('Any X WHERE X is IN (CWUser, CWGroup)') |
57 self.assertEquals(vid_from_rset(req, rset, self.schema), 'list') |
57 self.assertEquals(vid_from_rset(req, rset, self.schema), 'list') |