Unittest - How do I code lots of simple tests
Paul Moore
paul.moore at atosorigin.com
Wed Oct 22 07:44:26 EDT 2003
David Goodger <goodger at python.org> wrote in message news:<mailman.322.1066779769.2192.python-list at python.org>...
> Paul Moore wrote:
> >>> Can anyone suggest a more reasonable way of running this sort of
> >>> table-driven test via unittest?
>
> Take a look at Docutils' test/DocutilsTestSupport.py for ideas. The
> CustomTestSuite and CustomTestCase classes provide support for named
> data-driven tests. Most of Docutils' tests are data-driven.
Urk. That's hairy stuff. Thanks for the pointer, I'll do some research.
But I still think that this sort of thing should be easy :-(
Paul.
More information about the Python-list
mailing list