[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/tests - test_addservicecontainer.py:1.3.6.2

Guido van Rossum guido@python.org
Mon, 3 Mar 2003 12:05:13 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/services/tests
In directory cvs.zope.org:/tmp/cvs-serv638/src/zope/app/browser/services/tests

Modified Files:
      Tag: use-config-branch
	test_addservicecontainer.py 
Log Message:
Properly fix the failure of test_addservicecontainer.py.
Turns out that in zope/app/browser/services/service.py, we need to use
self.context.context as the context passed to ServiceConfiguration().

=== Zope3/src/zope/app/browser/services/tests/test_addservicecontainer.py 1.3.6.1 => 1.3.6.2 ===
--- Zope3/src/zope/app/browser/services/tests/test_addservicecontainer.py:1.3.6.1	Tue Feb 25 16:27:54 2003
+++ Zope3/src/zope/app/browser/services/tests/test_addservicecontainer.py	Mon Mar  3 12:04:41 2003
@@ -56,9 +56,13 @@
 from zope.app.browser.form.widget import TextWidget, TextAreaWidget
 
 from zope.app.interfaces.services.configuration import IAttributeUseConfigurable
+from zope.app.interfaces.services.interfaces import ISimpleService
 
-class I1(Interface): pass
-class C: __implements__ = IAttributeUseConfigurable, I1
+class I1(Interface):
+    pass
+
+class C:
+    __implements__ = IAttributeUseConfigurable, I1, ISimpleService
 
 class Test(PlacefulSetup, TestCase):