Re: [docs] There is no standard TestCase.runTest implementation (issue 22153)
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):
Doc/library/unittest.rst:1561: If no methods with the usual name
http://bugs.python.org/review/22153/diff/12734/Doc/library/unittest.rst#newc... 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.
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
This sounds quite clear to me。 that. http://bugs.python.org/review/22153/
participants (1)
-
ezio.melotti@gmail.com