Re: [Pyunit-interest] comments on PyUnit
Brought to you by:
purcell
From: Guido v. R. <gu...@di...> - 2001-04-12 18:39:39
|
> > > assertEquals(a,b) > > > > Why even bother with this? I'd say assert_(a == b) is good enough. > > Judging by the number of requests I've had for this, it seems that when > an equality assertion of two objects fails, one almost always wants to see > what the actual value was. So one ends up writing > > self.assert_(a == b, "%s != %s" % (a, b)) > > all over the place. Since I added 'assertEquals' I've used it enough that > I understand why it was requested. Excellent point. I withdraw the suggestion. --Guido van Rossum (home page: http://www.python.org/~guido/) |