Author serhiy.storchaka
Recipients ezio.melotti, michael.foord, r.david.murray, rbcollins, serhiy.storchaka
Date 2016-05-29.15:24:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464535519.92.0.0853489345335.issue27152@psf.upfronthosting.co.za>
In-reply-to
Content
Proposed patch adds the ExtraAssertions mix-in that provides additional assert methods. These methods provide better failure report than assertTrue/assertFalse with a result of corresponding function. For example assertStartsWith outputs shorten reprs of the start of the string and prefix.

These checks are quite popular and can be used tens or hundreds times in tests (the patch makes tests using new assert methods):

assertHasAttr       121 times
assertNotHasAttr     99 times
assertIsSubclass    243 times
assertNotIsSubclass  95 times
assertStartsWith    131 times
assertEndsWith       73 times
History
Date User Action Args
2016-05-29 15:25:21serhiy.storchakasetrecipients: + serhiy.storchaka, rbcollins, ezio.melotti, r.david.murray, michael.foord
2016-05-29 15:25:19serhiy.storchakasetmessageid: <1464535519.92.0.0853489345335.issue27152@psf.upfronthosting.co.za>
2016-05-29 15:25:19serhiy.storchakalinkissue27152 messages
2016-05-29 15:25:19serhiy.storchakacreate