[Zope-Checkins] CVS: Zope3/lib/python/Zope/ContextWrapper - test_wrapper.py:1.6.2.3

Fred Drake Jr fdrake@acm.org
Wed, 28 Nov 2001 17:01:36 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/ContextWrapper
In directory cvs.zope.org:/tmp/cvs-serv22520

Modified Files:
      Tag: Zope-3x-branch
	test_wrapper.py 
Log Message:
Change getinnerobject() to getbaseobject() to better conform to current
expectations from the acquisition world.


=== Zope3/lib/python/Zope/ContextWrapper/test_wrapper.py 1.6.2.2 => 1.6.2.3 ===
         self.assert_(wrapper.getobject(None) is None)
 
-    def test_getinnerobject(self):
+    def test_getbaseobject(self):
         obj = object()
-        self.assert_(wrapper.getinnerobject(obj) is obj)
+        self.assert_(wrapper.getbaseobject(obj) is obj)
         w1 = wrapper.Wrapper(obj)
-        self.assert_(wrapper.getinnerobject(w1) is obj)
+        self.assert_(wrapper.getbaseobject(w1) is obj)
         w = wrapper.Wrapper(w1)
         w = wrapper.Wrapper(w)
         w = wrapper.Wrapper(w)
         w = wrapper.Wrapper(w)
         w = wrapper.Wrapper(w)
-        self.assert_(wrapper.getinnerobject(w) is obj)
+        self.assert_(wrapper.getbaseobject(w) is obj)
         wrapper.setobject(w1, None)
-        self.assert_(wrapper.getinnerobject(w) is None)
+        self.assert_(wrapper.getbaseobject(w) is None)
         obj = object()
         wrapper.setobject(w1, obj)
-        self.assert_(wrapper.getinnerobject(w) is obj)
+        self.assert_(wrapper.getbaseobject(w) is obj)
 
     def test_getcontext(self):
         context = object()