web/test/unittest_views_baseviews.py
changeset 4494 ccb7fce7297b
parent 4252 6c4f109c2b03
child 5174 78438ad513ca
child 5377 84d14ddfae13
equal deleted inserted replaced
4493:c0a43c6ba777 4494:ccb7fce7297b
    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')