def test_get_config_by_adapting_any_context_in_site_root(self): self.grant('Manager') obj = create(Builder('folder').within(create(Builder('folder')))) self.assertEquals(IRedirectConfig(self.portal), IRedirectConfig(obj)) self.assertTrue(IRedirectConfig.providedBy(IRedirectConfig(obj)))
def test_get_config_by_adapting_portal(self): config = IRedirectConfig(self.portal) self.assertTrue(IRedirectConfig.providedBy(config))