From: Steve P. <ste...@ya...> - 2001-04-12 18:10:19
|
Guido van Rossum wrote: > > assert_(expr) > > This is an ugly name, though (and that's what started this debate). Hey, it's not my fault you bagged 'assert' first. :-) > > 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. -Steve -- Steve Purcell, Pythangelist Get testing at http://pyunit.sourceforge.net/ Any opinions expressed herein are my own and not necessarily those of Yahoo |