[Zope3-checkins]
CVS: Zope3/src/zope/app/browser/services/service/tests
- test_service.py:1.2
Jim Fulton
jim at zope.com
Sun Sep 21 13:31:05 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/services/service/tests
In directory cvs.zope.org:/tmp/cvs-serv12647/src/zope/app/browser/services/service/tests
Modified Files:
test_service.py
Log Message:
Added setUp and tearDown for tests. This was needed to set up an event
service to handle events published by container operations.
=== Zope3/src/zope/app/browser/services/service/tests/test_service.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/services/service/tests/test_service.py:1.1 Tue Sep 2 16:45:57 2003
+++ Zope3/src/zope/app/browser/services/service/tests/test_service.py Sun Sep 21 13:31:03 2003
@@ -21,7 +21,7 @@
from zope.publisher.browser import TestRequest
from zope.component.view import provideView
from zope.publisher.interfaces.browser import IBrowserPresentation
-from zope.app.tests.placelesssetup import PlacelessSetup
+from zope.app.tests.placelesssetup import PlacelessSetup, setUp, tearDown
from zope.testing.doctestunit import DocTestSuite
class IFoo(Interface):
@@ -59,7 +59,8 @@
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestComponentAdding))
- suite.addTest(DocTestSuite('zope.app.browser.services.service'))
+ suite.addTest(DocTestSuite('zope.app.browser.services.service',
+ setUp=setUp, tearDown=tearDown))
return suite
More information about the Zope3-Checkins
mailing list