web/test/unittest_views_navigation.py
changeset 9674 96549de9dd70
parent 7791 31bb51ea5485
child 9675 8aabfefc8a81
equal deleted inserted replaced
9673:f5e77035f332 9674:96549de9dd70
   124     #     req = self.request()
   124     #     req = self.request()
   125     #     objs = self.vreg['ctxcomponents'].poss_visible_objects(
   125     #     objs = self.vreg['ctxcomponents'].poss_visible_objects(
   126     #         req, rset=rset, view=view, context='navtop')
   126     #         req, rset=rset, view=view, context='navtop')
   127     #     # breadcrumbs should be in headers by default
   127     #     # breadcrumbs should be in headers by default
   128     #     clsids = set(obj.id for obj in objs)
   128     #     clsids = set(obj.id for obj in objs)
   129     #     self.assertTrue('breadcrumbs' in clsids)
   129     #     self.assertIn('breadcrumbs', clsids)
   130     #     objs = self.vreg['ctxcomponents'].poss_visible_objects(
   130     #     objs = self.vreg['ctxcomponents'].poss_visible_objects(
   131     #         req, rset=rset, view=view, context='navbottom')
   131     #         req, rset=rset, view=view, context='navbottom')
   132     #     # breadcrumbs should _NOT_ be in footers by default
   132     #     # breadcrumbs should _NOT_ be in footers by default
   133     #     clsids = set(obj.id for obj in objs)
   133     #     clsids = set(obj.id for obj in objs)
   134     #     self.assertFalse('breadcrumbs' in clsids)
   134     #     self.assertFalse('breadcrumbs' in clsids)
   138     #     req.cnx.commit()
   138     #     req.cnx.commit()
   139     #     objs = self.vreg['ctxcomponents'].poss_visible_objects(
   139     #     objs = self.vreg['ctxcomponents'].poss_visible_objects(
   140     #         req, rset=rset, view=view, context='navbottom')
   140     #         req, rset=rset, view=view, context='navbottom')
   141 
   141 
   142     #     clsids = [obj.id for obj in objs]
   142     #     clsids = [obj.id for obj in objs]
   143     #     self.assertTrue('breadcrumbs' in clsids)
   143     #     self.assertIn('breadcrumbs', clsids)
   144     #     objs = self.vreg['ctxcomponents'].poss_visible_objects(
   144     #     objs = self.vreg['ctxcomponents'].poss_visible_objects(
   145     #         req, rset=rset, view=view, context='navtop')
   145     #         req, rset=rset, view=view, context='navtop')
   146 
   146 
   147     #     clsids = [obj.id for obj in objs]
   147     #     clsids = [obj.id for obj in objs]
   148     #     self.assertFalse('breadcrumbs' in clsids)
   148     #     self.assertFalse('breadcrumbs' in clsids)