source: main/waeup.sirp/trunk/src/waeup/sirp/tests/test_waeup.py @ 5352

Last change on this file since 5352 was 5075, checked in by uli, 15 years ago

Add custom checker for tests: 10 digits shall appear as '<10-DIGITS>'.

  • Property svn:eol-style set to native
File size: 557 bytes
RevLine 
[3521]1##
2## test_waeuptest.py
3"""
[4920]4Test setup for the waeup.sirp package.
[3521]5"""
6import grok
[5075]7import re
[4789]8import zope.component.eventtesting
[5075]9from zope.testing import renormalizing
[4920]10from waeup.sirp.testing import FunctionalLayer
[4789]11
12def setUpZope(test):
13    zope.component.eventtesting.setUp(test)
14
[5075]15checker = renormalizing.RENormalizing([
16        (re.compile('[\d]{10}'), '<10-DIGITS>'),
17        ])
18   
[3521]19# Register all tests in the waeup_ng package
20test_suite = grok.testing.register_all_tests(
[5075]21    'waeup.sirp', checker=checker, usetup=setUpZope,
[4789]22    layer=FunctionalLayer)
Note: See TracBrowser for help on using the repository browser.