def setUpFive(self): """Initialize Five without loading the site.zcml file to avoid loading all Products.* . This basically pushes a special vocabulary registry that supports global and local utilities. """ self._oldVocabularyRegistry = getVocabularyRegistry() setVocabularyRegistry(Zope2VocabularyRegistry())
def _setupVocabulary(ztc): from zope.schema.vocabulary import setVocabularyRegistry setVocabularyRegistry(Zope2VocabularyRegistry())
def setupVocabulary(testcase): from zope.schema.vocabulary import setVocabularyRegistry setVocabularyRegistry(Zope2VocabularyRegistry())