jeffrey yasskin ahzkvfwpgmailcom 1 assert fail variants always feel like doublenegatives also always use asserttrue instead assert_ dont care enough argue wed mar 19 2008 224 gabriel grant wrote hi gem unittestpy pretty much opposite one obvious way synonyms assertion methods assertequal assertequals failunlessequal assertnotequal assertnotequals failifequal assertalmostequal assertalmostequals failunlessalmostequal assertnotalmostequal assertnotalmostequals failifalmostequal assertraises failunlessraises assert_ asserttrue failunless assertfalse failif could removed 3k short discussion among present python core sprint room pycon today preferred assertequal form notalmostequal raises assertfalse vs failif asserttrue vs failunless far less agreement junit uses asserttrue exclusively people said feel using asserttrue would consistent many included still think failunless failif much natural another issue asserttrue doesnt actually test true strictly speaking since based equality identity also interesting note original commit message r34209 purcell 20030922 060812 0500 mon 22 sep 2003 new asserttrue assertfalse aliases comfort junit users assertequal cousins already present point case decision made use failunless something still needs done assert_ vs asserttrue assert_ seems somewhat better fewer characters think case could certainly made keep certainly dont authority make call someone else decides colour paint bike shed try get done hopefully 26 warnings tomorrow cheers gabriel ps sprint room feel terribly misrepresented please feel free give swift kick onlist person tomorrow morning _______________________________________________ pythondev mailing list pythondevpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevjyasskin40gmailcom namasté jeffrey yasskin httpjeffreyyasskininfo _______________________________________________ pythondev mailing list pythondevpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom wed 06 aug 2008 093125 0500 pythondev unittests redundant assertions asserts vs failifunlesses