[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Traversing/tests - testZopeWrapper.py:1.1.2.4
Steve Alexander
steve@cat-box.net
Wed, 20 Mar 2002 18:13:24 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv13625/lib/python/Zope/App/Traversing/tests
Modified Files:
Tag: Zope-3x-branch
testZopeWrapper.py
Log Message:
better use of failUnless rather than assertEqual(a is b, 1).
=== Zope3/lib/python/Zope/App/Traversing/tests/testZopeWrapper.py 1.1.2.3 => 1.1.2.4 ===
def testPrimitives(self):
for obj in None, 1,1l, 1.0, 1+2j, u'', '':
- self.assertEquals(ZopeWrapper(obj) is obj, 1)
+ self.failUnless(ZopeWrapper(obj) is obj)
def testComplexTypes(self):
obj = object()
w = Wrapper(obj)
zw = ZopeWrapper(obj)
- self.assertEquals(type(zw) is type(w), 1)
- self.assertEquals(getobject(zw) is getobject(w), 1)
+ self.failUnless(type(zw) is type(w))
+ self.failUnless(getobject(zw) is getobject(w))
def test_suite():
loader = unittest.TestLoader()