import os.path import waeup.sirp from zope.app.testing.functional import ZCMLLayer ftesting_zcml = os.path.join( os.path.dirname(waeup.sirp.__file__), 'ftesting.zcml') FunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'FunctionalLayer', allow_teardown=True) class WAeUPSIRPUnitTestLayer(object): """A layer for doctests that groks `waeup.sirp`. """ @classmethod def setUp(self): import grok grok.testing.grok('waeup.sirp') @classmethod def tearDown(self): pass