Message108074
| Author |
haridsv |
| Recipients |
haridsv, michael.foord, tuben |
| Date |
2010年06月18日.01:43:07 |
| SpamBayes Score |
0.067805775 |
| Marked as misclassified |
No |
| Message-id |
<1276825389.45.0.946851207178.issue6966@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Changing unittest.TestCase.failUnlessEqual() to something like this will be very useful:
def failUnlessEqual(self, first, second, msg=None):
"""Fail if the two objects are unequal as determined by the '=='
operator. Argument msg could optionally include string format
operators named "lhs" and "rhs" (e.g., "%(lhs)r")
"""
if not first == second:
raise self.failureException, \
(msg or "%(lhs)r != %(rhs)r") % dict(lhs=10, rhs=20) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年06月18日 01:43:09 | haridsv | set | recipients:
+ haridsv, tuben, michael.foord |
| 2010年06月18日 01:43:09 | haridsv | set | messageid: <1276825389.45.0.946851207178.issue6966@psf.upfronthosting.co.za> |
| 2010年06月18日 01:43:07 | haridsv | link | issue6966 messages |
| 2010年06月18日 01:43:07 | haridsv | create |
|