The modules described in this chapter help you write software. For example, the
pydoc
module takes a module and generates documentation based on the
module's contents. The doctest
and unittest
modules contains
frameworks for writing unit tests that automatically exercise code and verify
that the expected output is produced. 2to3 can translate Python 2.x
source code into valid Python 3.x code.
The list of modules described in this chapter is:
pydoc
--- Documentation generator and online help systemdoctest
--- Test interactive Python examplesunittest
--- Unit testing framework- Basic example
- Command-Line Interface
- Test Discovery
- Organizing test code
- Re-using old test code
- Skipping tests and expected failures
- Classes and functions
- Test cases
- Grouping tests
- Loading and running tests
- Class and Module Fixtures
- Signal Handling
- 2to3 - Automated Python 2 to 3 code translation
test
--- Regression tests package for Pythontest.support
--- Utility functions for tests