Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/p/r/Products.ZCatalog-3.0.2/src/Products/ZCatalog/tests/test_brains.py   Products.ZCatalog(Download)
from ZODB.POSException import ConflictError
 
from ..CatalogBrains import _GLOBALREQUEST_INSTALLED
if _GLOBALREQUEST_INSTALLED:
    from zope.globalrequest import clearRequest
        self.assertEqual(b.getURL(), 'http://superbad.com/conflicter')
 
    if _GLOBALREQUEST_INSTALLED:
        def testGetURL_catalog_as_utility(self):
            request = DummyRequest()
                        aq_base(self.cat.getobject(1)))
 
    if _GLOBALREQUEST_INSTALLED:
        def testGetObjectHappy_catalog_as_utility(self):
            request = DummyRequest()