Re: [Pyunit-interest] comments on PyUnit
Brought to you by:
purcell
From: Jeremy H. <je...@al...> - 2001-04-23 12:46:58
|
>>>>> "SP" == Steve Purcell <ste...@ya...> writes: SP> Thanks Guido, points duly noted. I propose the following: SP> - Add 'failUnlessRaises()' to TestCase SP> - Add 'failIfEqual()' to TestCase SP> - Add 'failUnlessEqual()' to TestCase (and probably SP> 'failIfEqual()' too) These names are awkard because they use a negative expression: "It should be be the case that this code does not raise ValueError." assertRaises() is clearer because it is in positive form, "It should be the case that this code raises ValueError." I'd rather find a synonym for assert than convert everything to fail. verifyRaises() seems reasonable. Jeremy |