def testSolrInterface(self): proc = queryUtility(ISolrIndexQueueProcessor, name='solr') self.failUnless(proc, 'utility not found') self.failUnless(IIndexQueueProcessor.providedBy(proc)) self.failUnless(ISolrIndexQueueProcessor.providedBy(proc))
def testGenericInterface(self): proc = queryUtility(IIndexQueueProcessor, name='solr') self.assertTrue(proc, 'utility not found') self.assertTrue(IIndexQueueProcessor.providedBy(proc)) self.assertTrue(ISolrIndexQueueProcessor.providedBy(proc))
def testGenericInterface(self): proc = queryUtility(IIndexQueueProcessor, name='zerocms') self.failUnless(proc, 'utility not found') self.failUnless(IIndexQueueProcessor.providedBy(proc)) self.failUnless(IZeroCMSIndexQueueProcessor.providedBy(proc))