[Zope-Checkins] CVS: Zope3/lib/python/Zope/ContextWrapper - test_wrapper.py:1.6.2.10
Guido van Rossum
guido@python.org
Wed, 20 Mar 2002 14:18:03 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/ContextWrapper
In directory cvs.zope.org:/tmp/cvs-serv17887
Modified Files:
Tag: Zope-3x-branch
test_wrapper.py
Log Message:
Unit test for wrapped None in Boolean context.
=== Zope3/lib/python/Zope/ContextWrapper/test_wrapper.py 1.6.2.9 => 1.6.2.10 ===
self.assertEquals(a, b)
+ def test_bool_wrapped_None(self):
+ w = wrapper.Wrapper(None)
+ self.assertEquals(not w, 1)
+
def test_suite():
suite = unittest.TestSuite()