[docs] There is no standard TestCase.runTest implementation (issue 22153)
ezio.melotti at gmail.com
ezio.melotti at gmail.com
Mon Nov 10 23:12:06 CET 2014
On 2014/11/10 22:24:13, vadmium wrote:
>
http://bugs.python.org/review/22153/diff/12734/Doc/library/unittest.rst
> File Doc/library/unittest.rst (right):
>
>
http://bugs.python.org/review/22153/diff/12734/Doc/library/unittest.rst#newcode1561
> Doc/library/unittest.rst:1561: If no methods with the usual name
prefix are
> found, but the ``runTest()`` method is implemented, there will be a
single test
> case using that method.
> I think this was my original wording. What about something like
>
> A test case instance is created for each method named by
getTestCaseNames(). By
> default these are the method names beginning with “test”. If
getTestCaseNames()
> returns no methods, but the runTest() method is implemented, a single
test case
> is created for that method instead.
>
This sounds quite clear to me。
> Personally, I use runTest() for test case classes designed with a
single test
> method in mind. But I’m not sure the documentation should suggest
that.
http://bugs.python.org/review/22153/
More information about the docs
mailing list