DocTestSuite(module=None, globs=None, extraglobs=None, test_finder=None, **options)
Convert doctest tests for a module to a unittest test suite.
This converts each documentation string in a module that contains doctest tests to a unittest test case. If any of the tests in a doc string fail, then the test case fails. An exception is raised showing the name of the file containing the test and a (sometimes approximate) line number.
The module argument provides the module to be tested. The argument can be either a module or a module name.
If no argument is given, the calling module is used.
A number of options may be provided as keyword arguments: