equal
deleted
inserted
replaced
38 html = navcomp.render() |
38 html = navcomp.render() |
39 |
39 |
40 def test_navigation_selection_not_enough(self): |
40 def test_navigation_selection_not_enough(self): |
41 req = self.request() |
41 req = self.request() |
42 rset = self.execute('Any X,N LIMIT 10 WHERE X name N') |
42 rset = self.execute('Any X,N LIMIT 10 WHERE X name N') |
43 navcomp = self.vreg['components'].select_object('navigation', req, rset=rset) |
43 navcomp = self.vreg['components'].select_or_none('navigation', req, rset=rset) |
44 self.assertEquals(navcomp, None) |
44 self.assertEquals(navcomp, None) |
45 req.set_search_state('W:X:Y:Z') |
45 req.set_search_state('W:X:Y:Z') |
46 navcomp = self.vreg['components'].select_object('navigation', req, rset=rset) |
46 navcomp = self.vreg['components'].select_or_none('navigation', req, rset=rset) |
47 self.assertEquals(navcomp, None) |
47 self.assertEquals(navcomp, None) |
48 req.set_search_state('normal') |
48 req.set_search_state('normal') |
49 |
49 |
50 def test_navigation_selection_not_enough(self): |
50 def test_navigation_selection_not_enough(self): |
51 req = self.request() |
51 req = self.request() |