Re: [Pyunit-interest] comments on PyUnit
Brought to you by:
purcell
From: Steve P. <ste...@ya...> - 2001-04-11 17:45:49
|
Thanks Guido, points duly noted. I propose the following: - Add 'failUnlessRaises()' to TestCase - Add 'failIfEqual()' to TestCase - Add 'failUnlessEqual()' to TestCase (and probably 'failIfEqual()' too) - Document the 'fail*' methods - Keep the 'assert*' methods but don't mention them - Don't mention using the 'assert' statement - Make all 'fail*' and 'assert*' methods delegate to 'fail()', as suggested by Fred - Keep AssertionError as the 'blessed failure exception', but parameterise it at module level I think this can be safely done in time for this week's 2.1 release (though that's not *my* call to make). The 'blessed' failure exception could be changed at a later date if that turns out to be desirable. However, I think that if the documentation does not encourage test writers to use the 'assert' statement, this will never be a problem. If this is acceptable, I can make appropriate changes. (Users should note that the proposed changes would have no effect on their existing tests.) Best wishes, -Steve -- Steve Purcell, Pythangelist Get testing at http://pyunit.sourceforge.net/ Any opinions expressed herein are my own and not necessarily those of Yahoo |