ron adam qkdronadamcom michael foord wrote guido van rossum wrote im worried mass renaming would anything inconvenience users already stressful 23 transition im favor original proposal reducing redundancy post30 nix pep8ifying 30 new methods follow current naming scheme assertin assertnotin etc youre looking useful features google set extensions unittestpy find useful modulelevel setup teardown suite made module setup called first test teardown last look routines comparing large lists strings produce useful output indicating exactly inputs differ assertless etc etc assume mean assertlessthan assertgreaterthan assertlessthanorequals assertgreaterthanorequals would variants useful well seems one always another think assertlessthan reads better assertless im told assertsameelements sort like assertsetx sety sounds good look proposals decorator make function testcase convenience runtests functions taking modules suites testcases running improved messages assertequals assertnotequals explicit message passed improved message comparing liststuples assertequals additional asserts suggested innotin raiseswithmessage isnotis think still work docs even grand renaming something found useful improve messages tests catch report errors unique exceptions indicate failures make clear distinction error found module tested vs test case error test case results regular python exception trace back test case error module tested results specific unittest exception indicating type error found module followed original exception traceback module tested ron class testcaseunittesttestcase failureexception unittesttestcasefailureexception class unexpected_exception_raisedfailureexception def __init__self exc ref selfexc exc selfref ref def __str__self return njoinreprselfexc nreference selfref class wrong_exception_raisedunexpected_exception_raised pass class no_exception_raisedfailureexception def __init__self result ref selfresult reprresult selfref ref def __str__self return returned njoinselfresult nreference selfref class wrong_result_returnedno_exception_raised def __str__self return njoinselfresult nreference selfref def asserttestreturnsself test expect ref try result test except exception e e0 e1 e2 sysexc_info raise selfunexpected_exception_raised e ref e2 result expect raise selfwrong_result_returnedresult ref def asserttestraisesself test expect ref try result test except exception e isinstancee expect return e else e0 e1 e2 sysexc_info raise selfwrong_exception_raised e ref e2 raise selfno_exception_raisedresult ref _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom thu 07 aug 2008 144318 0500 pythondev proposed unittest changes