[Zope-Checkins] CVS: Zope/lib/python - unittest.py:1.1.46.4

Tres Seaver tseaver@zope.com
Mon, 10 Dec 2001 17:33:47 -0500


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

Modified Files:
      Tag: zope-2_3-branch
	unittest.py 
Log Message:
 - Make CMF unit tests which use 'assertEqual' pass.

=== Zope/lib/python/unittest.py 1.1.46.3 => 1.1.46.4 ===
         apply(self.assert_,(not expr,msg))
 
+    def assertEqual( self, lhs, rhs ):
+        """Fail unless lhs == rhs
+        """
+        if lhs != rhs:
+            self.fail( '%s != %s' % (lhs, rhs) )
+
     def assertRaises(self, excClass, callableObj, *args, **kwargs):
         """Assert that an exception of class excClass is thrown
            by callableObj when invoked with arguments args and keyword