[docs] unittest documentation mistake?
Chris Jerdonek
chris.jerdonek at gmail.com
Fri Sep 28 05:45:25 CEST 2012
> Date: Thu, 13 Sep 2012 18:37:13 -0700
> From: John Maxwell <dreamalgebra at gmail.com>
> Subject: [docs] unittest documentation mistake?
>
> I believe this is a mistake in the unittest module docs at
> http://docs.python.org/library/unittest.html:
>
> "A test suite is a collection of test cases, test suites, or both. It is
> used to aggregate tests that should be executed together."
>
> Are you sure you don't mean:
>
> "A test suite is a collection of test cases, fixtures, or both. It is used
> to aggregate tests that should be executed together."
>
> I'm not actually familiar with the module, so feel free to tell me if I got
> it wrong.
Hi John, the existing documentation is correct if you read the
documentation for TestSuite:
http://docs.python.org/library/unittest.html#unittest.TestSuite
For example, TestSuite.addTest(test) allows you to add TestSuite
instances to a TestSuite (which allows nesting).
--Chris
More information about the docs
mailing list