This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Gregory.Salvan, Julian, eric.araujo, martin.panter, michael.foord, ncoghlan, r.david.murray, rbcollins, serhiy.storchaka
Date 2014-09-26.07:13:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here are most popular idioms which deserve special assertion methods:

assertHasAttr(obj, name) == assertTrue(hasattr(obj, name))
assertIsSubclass(type, expected) == assertTrue(issubclass(type, expected))
assertTypeIs(obj, expected) == assertIs(type(obj), expected)
assertTypedEqual(actual, expected) == assertIs(type(actual), type(expected)) and assertEqual(actual, expected) # or assertIsInstance(actual, type(expected))?
assertStartsWith(actual, prefix) == assertTrue(s.startswith(prefix))
assertEndsWith(actual, suffix) == assertTrue(s.endswith(suffix))
assertUnorderedSequenceEqual(first, second) == assertTrue(all(x in second for x in first)) and assertTrue(all(x in first for x in second)) and assertEqual(len(first), len(second))
Date User Action Args
2014-09-26 07:13:28serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, rbcollins, eric.araujo, r.david.murray, michael.foord, Julian, martin.panter, Gregory.Salvan
2014-09-26 07:13:28serhiy.storchakasetmessageid: <>
2014-09-26 07:13:28serhiy.storchakalinkissue19645 messages
2014-09-26 07:13:28serhiy.storchakacreate