This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients exarkun, r.david.murray, techtonik
Date 2010-06-18.13:55:11
SpamBayes Score 0.0032757488
Marked as misclassified No
Message-id <1276869315.58.0.670063185393.issue9028@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, running individual tests has already been implemented as part of unittest (where it belongs):

./python -m unittest test.test_httpservers.BaseHTTPServerTestCase.test_handler
.
----------------------------------------------------------------------
Ran 1 test in 0.102s

OK

The 'TestCase' marks classes that are actually test cases rather than helper classes, and test_ is how unittest determines which methods are test methods and which are support methods.  These strings are not fixed from test file to test file, so it is necessary to specify the full name (and should be).

the --list option that prints the test name in a cut and paste friendly fashion is somewhat interesting, perhaps you could open a new issue to propose adding that to unittest.  If you do open an issue, make michael.foord nosy on it.
History
Date User Action Args
2010-06-18 13:55:15r.david.murraysetrecipients: + r.david.murray, exarkun, techtonik
2010-06-18 13:55:15r.david.murraysetmessageid: <1276869315.58.0.670063185393.issue9028@psf.upfronthosting.co.za>
2010-06-18 13:55:12r.david.murraylinkissue9028 messages
2010-06-18 13:55:11r.david.murraycreate