Last change
on this file since 6092 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
|
Line | |
---|
1 | ## |
---|
2 | ## test_waeuptest.py |
---|
3 | """ |
---|
4 | Test setup for the waeup.sirp package. |
---|
5 | """ |
---|
6 | import grok |
---|
7 | import re |
---|
8 | import zope.component.eventtesting |
---|
9 | from zope.testing import renormalizing |
---|
10 | from waeup.sirp.testing import FunctionalLayer |
---|
11 | |
---|
12 | def setUpZope(test): |
---|
13 | zope.component.eventtesting.setUp(test) |
---|
14 | |
---|
15 | checker = renormalizing.RENormalizing([ |
---|
16 | (re.compile('[\d]{10}'), '<10-DIGITS>'), |
---|
17 | ]) |
---|
18 | |
---|
19 | # Register all tests in the waeup_ng package |
---|
20 | test_suite = grok.testing.register_all_tests( |
---|
21 | 'waeup.sirp', checker=checker, usetup=setUpZope, |
---|
22 | layer=FunctionalLayer) |
---|
Note: See
TracBrowser for help on using the repository browser.