web/test/unittest_views_navigation.py
changeset 6366 1806148d6ce8
parent 6141 b8287e54b528
parent 6340 470d8e828fda
child 7000 09e32d10e6bc
equal deleted inserted replaced
6333:e3994fcc21c3 6366:1806148d6ce8
    60 
    60 
    61     def test_navigation_selection_not_enough(self):
    61     def test_navigation_selection_not_enough(self):
    62         req = self.request()
    62         req = self.request()
    63         rset = self.execute('Any X,N LIMIT 10 WHERE X name N')
    63         rset = self.execute('Any X,N LIMIT 10 WHERE X name N')
    64         navcomp = self.vreg['components'].select_or_none('navigation', req, rset=rset)
    64         navcomp = self.vreg['components'].select_or_none('navigation', req, rset=rset)
    65         self.assertEquals(navcomp, None)
    65         self.assertEqual(navcomp, None)
    66         req.set_search_state('W:X:Y:Z')
    66         req.set_search_state('W:X:Y:Z')
    67         navcomp = self.vreg['components'].select_or_none('navigation', req, rset=rset)
    67         navcomp = self.vreg['components'].select_or_none('navigation', req, rset=rset)
    68         self.assertEquals(navcomp, None)
    68         self.assertEqual(navcomp, None)
    69         req.set_search_state('normal')
    69         req.set_search_state('normal')
    70 
    70 
    71     def test_navigation_selection_not_enough(self):
    71     def test_navigation_selection_not_enough(self):
    72         req = self.request()
    72         req = self.request()
    73         rset = self.execute('Any N, COUNT(RDEF) GROUPBY N ORDERBY N WHERE RDEF relation_type RT, RT name N')
    73         rset = self.execute('Any N, COUNT(RDEF) GROUPBY N ORDERBY N WHERE RDEF relation_type RT, RT name N')