equal
deleted
inserted
replaced
76 config = cwconfig.CubicWebNoAppConfiguration() |
76 config = cwconfig.CubicWebNoAppConfiguration() |
77 cnx = _repo_connect(self.repo, login='admin', password='gingkow') |
77 cnx = _repo_connect(self.repo, login='admin', password='gingkow') |
78 with tempattr(cnx.vreg, 'config', config): |
78 with tempattr(cnx.vreg, 'config', config): |
79 cnx.use_web_compatible_requests('http://perdu.com') |
79 cnx.use_web_compatible_requests('http://perdu.com') |
80 req = cnx.request() |
80 req = cnx.request() |
81 self.assertEqual(req.base_url(), 'http://perdu.com') |
81 self.assertEqual(req.base_url(), 'http://perdu.com/') |
82 self.assertEqual(req.from_controller(), 'view') |
82 self.assertEqual(req.from_controller(), 'view') |
83 self.assertEqual(req.relative_path(), '') |
83 self.assertEqual(req.relative_path(), '') |
84 req.ajax_replace_url('domid') # don't crash |
84 req.ajax_replace_url('domid') # don't crash |
85 req.user.cw_adapt_to('IBreadCrumbs') # don't crash |
85 req.user.cw_adapt_to('IBreadCrumbs') # don't crash |
86 |
86 |