[Twisted-Python] twisted.news cleanups and tests
Bob Ippolito
bob at redivi.com
Sat Apr 12 19:06:53 EDT 2003
On Saturday, Apr 12, 2003, at 18:42 America/New_York, Jp Calderone
wrote:
> On Sat, Apr 12, 2003 at 03:30:37PM -0700, Kevin Turner wrote:
>>> In the test cases, you also used assert_() (but just once, I
>>> assume it
>>> was an oversight), which shouldn't be access directly by tests cases,
>>
>> says who? why not? I've always thought it was just an alternative
>> spelling of failUnless, and that it has the dangling underscore simply
>> because 'assert' is a keyword in Python.
>
> Says me! Rar! I thought we only still supported it because PyUnit
> had
> it. In any case, it *is* bound to the same function as failUnless, so
> it
> makes no practical difference, and I'm certainly not the authority for
> Trial. Multiple spellings for the same thing sucks, though, and given
> a
> choice between the two, I'd pick failUnless() any day.
IIRC, Trial's unittest module has multiple spellings for a lot of
things. What we should probably do is make a decision on one set of
spellings and issue DeprecationWarnings for the rest.
-bob
More information about the Twisted-Python
mailing list