source: main/waeup.sirp/trunk/src/waeup/sirp/testing.py @ 5779

Last change on this file since 5779 was 5139, checked in by uli, 15 years ago

Add a unit test layer, that groks the waeup.sirp package once for
all unit tests.

  • Property svn:eol-style set to native
File size: 547 bytes
RevLine 
[3521]1import os.path
[4920]2import waeup.sirp
[3521]3from zope.app.testing.functional import ZCMLLayer
4
5ftesting_zcml = os.path.join(
[4920]6    os.path.dirname(waeup.sirp.__file__), 'ftesting.zcml')
[4789]7FunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'FunctionalLayer',
8                            allow_teardown=True)
[5139]9
10class WAeUPSIRPUnitTestLayer(object):
11    """A layer for doctests that groks `waeup.sirp`.
12    """
13    @classmethod
14    def setUp(self):
15        import grok
16        grok.testing.grok('waeup.sirp')
17
18    @classmethod
19    def tearDown(self):
20        pass
Note: See TracBrowser for help on using the repository browser.