[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container/tests - test_adding.py:1.4

Jim Fulton jim@zope.com
Wed, 28 May 2003 19:15:06 -0400


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

Modified Files:
	test_adding.py 
Log Message:
Changed to not use getWrapperObject


=== Zope3/src/zope/app/browser/container/tests/test_adding.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/container/tests/test_adding.py:1.3	Tue May 27 10:18:07 2003
+++ Zope3/src/zope/app/browser/container/tests/test_adding.py	Wed May 28 19:15:05 2003
@@ -22,8 +22,7 @@
 from zope.app.interfaces.container import IAdding
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.component.view import provideView
-from zope.context \
-     import getWrapperObject, getWrapperContainer, getWrapperData
+from zope.context import getWrapperContainer, getWrapperData
 from zope.publisher.browser import TestRequest
 from zope.publisher.browser import BrowserView
 from zope.publisher.interfaces.browser import IBrowserPresentation
@@ -95,7 +94,7 @@
         # Check the state of the container and result
         self.assertEqual(container["foo"], o)
         self.assertEqual(getWrapperContainer(result), container)
-        self.assertEqual(getWrapperObject(result), o)
+        self.assertEqual(result, o)
         self.assertEqual(getWrapperData(result)["name"], "foo")
 
     def testNoNameGiven(self):