[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/configuration/tests - test_editconfiguration.py:1.3

Steve Alexander steve@cat-box.net
Thu, 5 Jun 2003 08:03:44 -0400


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

Modified Files:
	test_editconfiguration.py 
Log Message:
Placeful setup for tests now sets up a  ZopeContainerDecorator.
This means that in such tests, you no longer need to use
ZopeContainerAdapter to get the correct events issued, and perform context-
wrapping duties, when you use a container.
However, it does mean that your tests need to expect these events and
context-wrappers to be used.



=== Zope3/src/zope/app/browser/services/configuration/tests/test_editconfiguration.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/services/configuration/tests/test_editconfiguration.py:1.2	Wed Apr 30 19:37:56 2003
+++ Zope3/src/zope/app/browser/services/configuration/tests/test_editconfiguration.py	Thu Jun  5 08:03:13 2003
@@ -21,7 +21,6 @@
 
 from unittest import TestCase, TestSuite, main, makeSuite
 from zope.app.browser.services.configuration import EditConfiguration
-from zope.app.container.zopecontainer import ZopeContainerAdapter
 from zope.app.event.tests.placelesssetup import getEvents
 from zope.app.interfaces.container import IContainer
 from zope.app.interfaces.container import IZopeContainer
@@ -51,9 +50,6 @@
 class Test(PlacefulSetup, TestCase):
 
     def test_remove_objects(self):
-
-        provideAdapter(IContainer, IZopeContainer, ZopeContainerAdapter)
-
         c1 = C()
         c2 = C()
         c7 = C()