Example #1
0
    def test_chooseRequestClass(self):
        from zope.publisher.interfaces import IRequest, IPublication

        factoryRegistry.register('GET', '*', 'browser', 0, BrowserFactory())

        caller = functional.HTTPCaller()
        request_class, publication_class = caller.chooseRequestClass(
            method='GET', path='/', environment={})

        self.assert_(IRequest.implementedBy(request_class))
        self.assert_(IPublication.implementedBy(publication_class))
 def testImplementsIPublication(self):
     self.assertTrue(IPublication.providedBy(DefaultPublication(self.app)))
Example #3
0
 def testImplementsIPublication(self):
     self.failUnless(IPublication.providedBy(
                         DefaultPublication(self.app)))
 def testImplementsIPublication(self):
     self.assertTrue(IPublication.providedBy(
                         DefaultPublication(self.app)))