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') |