| ) |
| testFunc[, setUp[, tearDown[, description]]]) |
| [tests]) |
| ) |
| [stream[, descriptions[, verbosity]]]) |
| [module[, defaultTest[, argv[, testRunner[, testRunner]]]]]) |
if __name__ == '__main__':
unittest.main()
In some cases, the existing tests may have be written using the doctest module. If so, that module provides a DocTestSuite class that can automatically build unittest.TestSuite instances from the existing test code. New in version 2.3.
See About this document... for information on suggesting changes. Document provided by Web Master Resources and hosted at Speedy Domain Registration Company