def setUp(self): from Products.SPARQLQuery.ValueBox import ValueBox self.box = ValueBox('box', "Test ValueBox") self.box_app = WsgiApp(self.box) self.box.absolute_url = Mock(return_value='') wsgi_intercept.add_wsgi_intercept('test', 80, lambda: self.box_app) self.browser = wsgi_intercept.mechanize_intercept.Browser() self.validate_patch = patch('AccessControl.SecurityManagement' '.SecurityManager.validate') self.validate_patch.start().return_value = True
def setUp(self): from Products.SPARQLQuery.ValueBox import ValueBox self.box = ValueBox('box', "Test ValueBox")