Last change
on this file since 6504 was
6340,
checked in by Henrik Bettermann, 13 years ago
|
Source titles should have an initial capital letter to conform with the zope.formlib convention. This is easier than patching the zope.formlib (and its translations).
|
-
Property svn:eol-style set to
native
|
File size:
553 bytes
|
Rev | Line | |
---|
[3521] | 1 | ## |
---|
| 2 | ## test_waeuptest.py |
---|
| 3 | """ |
---|
[4920] | 4 | Test setup for the waeup.sirp package. |
---|
[3521] | 5 | """ |
---|
| 6 | import grok |
---|
[5075] | 7 | import re |
---|
[4789] | 8 | import zope.component.eventtesting |
---|
[5075] | 9 | from zope.testing import renormalizing |
---|
[4920] | 10 | from waeup.sirp.testing import FunctionalLayer |
---|
[4789] | 11 | |
---|
| 12 | def setUpZope(test): |
---|
| 13 | zope.component.eventtesting.setUp(test) |
---|
| 14 | |
---|
[5075] | 15 | checker = renormalizing.RENormalizing([ |
---|
| 16 | (re.compile('[\d]{10}'), '<10-DIGITS>'), |
---|
| 17 | ]) |
---|
[6340] | 18 | |
---|
[3521] | 19 | # Register all tests in the waeup_ng package |
---|
| 20 | test_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.