[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component/tests -
test_interfacewidget.py:1.27
Sidnei da Silva
sidnei at x3ng.com.br
Fri Oct 3 16:40:47 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/component/tests
In directory cvs.zope.org:/tmp/cvs-serv8660/tests
Modified Files:
test_interfacewidget.py
Log Message:
Fix InterfaceWidget tests that were failing for around a week.
=== Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py 1.26 => 1.27 ===
--- Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py:1.26 Wed Aug 20 14:37:59 2003
+++ Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py Fri Oct 3 16:40:47 2003
@@ -30,6 +30,7 @@
from zope.component.service import serviceManager, defineService
from zope.app.services.servicenames import Interfaces
from zope.app.interfaces.form import ConversionError, WidgetInputError
+from zope.app.tests import setup
class I(Interface):
"""bah blah
@@ -48,12 +49,11 @@
def two():
"""method two"""
-class BaseInterfaceWidgetTest(CleanUp, TestCase):
+class BaseInterfaceWidgetTest(TestCase):
def setUp(self):
- service = InterfaceService()
- defineService(Interfaces, IInterfaceService)
- serviceManager.provideService(Interfaces, service)
+ setup.placefulSetUp()
+ service = serviceManager.getService(Interfaces)
service.provideInterface(
'zope.app.browser.component.tests.test_interfacewidget.I', I)
service.provideInterface(
@@ -64,6 +64,8 @@
self.request = request
+ def tearDown(self):
+ setup.placefulTearDown()
class TestInterfaceWidget(BaseInterfaceWidgetTest):
More information about the Zope3-Checkins
mailing list