Message162466
Why not just instantiate a TestCase instance and use that?
>>> from unittest import TestCase
>>> t = TestCase()
>>> t.assertEqual('foo', 'bar')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/compile/py3k-cpython/Lib/unittest/case.py", line 642, in assertEqual
assertion_func(first, second, msg=msg)
File "/compile/py3k-cpython/Lib/unittest/case.py", line 1021, in assertMultiLineEqual
self.fail(self._formatMessage(msg, standardMsg))
File "/compile/py3k-cpython/Lib/unittest/case.py", line 509, in fail
raise self.failureException(msg)
AssertionError: 'foo' != 'bar'
- foo
+ bar |
|
| Date |
User |
Action |
Args |
| 2012-06-07 08:56:44 | michael.foord | set | recipients:
+ michael.foord, ncoghlan |
| 2012-06-07 08:56:44 | michael.foord | set | messageid: <[email protected]> |
| 2012-06-07 08:56:43 | michael.foord | link | issue15024 messages |
| 2012-06-07 08:56:43 | michael.foord | create | |
|