예제 #1
0
    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
예제 #2
0
 def setUp(self):
     from Products.SPARQLQuery.ValueBox import ValueBox
     self.box = ValueBox('box', "Test ValueBox")