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

Last change on this file since 5407 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
Line 
1import os.path
2import waeup.sirp
3from zope.app.testing.functional import ZCMLLayer
4
5ftesting_zcml = os.path.join(
6    os.path.dirname(waeup.sirp.__file__), 'ftesting.zcml')
7FunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'FunctionalLayer',
8                            allow_teardown=True)
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.