[Zope-Checkins] CVS: Zope3/lib/python/Zope/ContextWrapper/tests - testContainmentIterator.py:1.1.2.2
Jim Fulton
jim@zope.com
Fri, 28 Dec 2001 14:00:13 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/ContextWrapper/tests
In directory cvs.zope.org:/tmp/cvs-serv25347
Modified Files:
Tag: Zope-3x-branch
testContainmentIterator.py
Log Message:
Added test for unwrapped object case.
=== Zope3/lib/python/Zope/ContextWrapper/tests/testContainmentIterator.py 1.1.2.1 => 1.1.2.2 ===
class Test(unittest.TestCase):
- def testItAll(self):
+ def testWrapped(self):
ob1 = 1
ob2 = 2
ob3 = 3
@@ -26,6 +26,9 @@
ob = Wrapper(Wrapper(ob3, Wrapper(ob2, ob1)), ob4)
self.assertEqual(map(getbaseobject, ContainmentIterator(ob)), [ 3, 2, 1 ])
+
+ def testUnWrapped(self):
+ self.assertEqual(map(getbaseobject, ContainmentIterator(9)), [ 9 ])
def test_suite():
loader=unittest.TestLoader()