unittest: how to specify which suites to run with unittest.main()?

Mark McEahern marklists at mceahern.com
Tue Feb 11 18:44:59 EST 2003


> Now I want to build a test suite which uses all the test* methdods
> in test1 and test2, but NOT in testBase. testBase is meant to be
> used only to provide common functionality to other test classes, not
> to be used by itself.

1.  Don't name any method of testBase test*--or am I missing something?

and/or:

2.  Put testBase in a separate module and import it.

// m
-






More information about the Python-list mailing list